Version: 8.3.0
SMESH_ScalarBarActor Class Reference

#include <SMESH_ScalarBarActor.h>

Inheritance diagram for SMESH_ScalarBarActor:

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
 
 vtkTypeMacro (SMESH_ScalarBarActor, vtkActor2D)
 
int RenderOpaqueGeometry (vtkViewport *viewport)
 
int RenderTranslucentGeometry (vtkViewport *)
 
int RenderOverlay (vtkViewport *viewport)
 
virtual void ReleaseGraphicsResources (vtkWindow *)
 
virtual void SetLookupTable (vtkScalarsToColors *)
 
 vtkGetObjectMacro (LookupTable, vtkScalarsToColors)
 
 vtkSetClampMacro (MaximumNumberOfColors, int, 2, VTK_INT_MAX)
 
 vtkGetMacro (MaximumNumberOfColors, int)
 
 vtkSetClampMacro (NumberOfLabels, int, 0, 64)
 
 vtkGetMacro (NumberOfLabels, int)
 
 vtkSetClampMacro (Orientation, int, 0, 1)
 
 vtkGetMacro (Orientation, int)
 
void SetOrientationToHorizontal ()
 
void SetOrientationToVertical ()
 
virtual void SetTitleTextProperty (vtkTextProperty *p)
 
 vtkGetObjectMacro (TitleTextProperty, vtkTextProperty)
 
virtual void SetLabelTextProperty (vtkTextProperty *p)
 
 vtkGetObjectMacro (LabelTextProperty, vtkTextProperty)
 
 vtkSetStringMacro (LabelFormat)
 
 vtkGetStringMacro (LabelFormat)
 
 vtkSetStringMacro (Title)
 
 vtkGetStringMacro (Title)
 
void ShallowCopy (vtkProp *prop)
 
virtual void SetDistributionVisibility (int flag)
 
virtual int GetDistributionVisibility ()
 
virtual void SetDistribution (std::vector< int > theNbValues)
 
void SetDistributionColoringType (int theDistributionColoringType)
 
int GetDistributionColoringType ()
 
void SetDistributionColor (double rgb[3])
 
void GetDistributionColor (double rgb[3])
 
void SetTitleOnlyVisibility (bool)
 
bool GetTitleOnlyVisibility ()
 

Static Public Member Functions

static SMESH_ScalarBarActorNew ()
 

Protected Member Functions

 SMESH_ScalarBarActor ()
 
 ~SMESH_ScalarBarActor ()
 
virtual void AllocateAndSizeLabels (int *labelSize, int *size, vtkViewport *viewport, double *range)
 

Protected Attributes

vtkScalarsToColors * LookupTable
 
vtkTextProperty * TitleTextProperty
 
vtkTextProperty * LabelTextProperty
 
int MaximumNumberOfColors
 
int NumberOfLabels
 
int NumberOfLabelsBuilt
 
int Orientation
 
char * Title
 
char * LabelFormat
 
vtkTextMapper ** TextMappers
 

Private Member Functions

void SizeTitle (int *titleSize, int *size, vtkViewport *viewport)
 
 SMESH_ScalarBarActor (const SMESH_ScalarBarActor &)
 
void operator= (const SMESH_ScalarBarActor &)
 

Private Attributes

vtkTextMapper * TitleMapper
 
vtkActor2DTitleActor
 
vtkActor2D ** TextActors
 
vtkPolyData * ScalarBar
 
vtkPolyDataMapper2D * ScalarBarMapper
 
vtkActor2DScalarBarActor
 
vtkTimeStamp BuildTime
 
int LastSize [2]
 
int LastOrigin [2]
 
vtkPolyData * myDistribution
 
vtkActor2DmyDistributionActor
 
vtkPolyDataMapper2D * myDistributionMapper
 
std::vector< intmyNbValues
 
int myDistributionColoringType
 
bool myTitleOnlyVisibility
 

Constructor & Destructor Documentation

SMESH_ScalarBarActor::SMESH_ScalarBarActor ( const SMESH_ScalarBarActor )
private

Member Function Documentation

void SMESH_ScalarBarActor::AllocateAndSizeLabels ( int labelSize,
int size,
vtkViewport *  viewport,
double *  range 
)
protectedvirtual
void SMESH_ScalarBarActor::GetDistributionColor ( double  rgb[3])
bool SMESH_ScalarBarActor::GetTitleOnlyVisibility ( )

References myTitleOnlyVisibility.

static SMESH_ScalarBarActor* SMESH_ScalarBarActor::New ( )
static
void SMESH_ScalarBarActor::operator= ( const SMESH_ScalarBarActor )
private
void SMESH_ScalarBarActor::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
void SMESH_ScalarBarActor::ReleaseGraphicsResources ( vtkWindow *  win)
virtual
int SMESH_ScalarBarActor::RenderOverlay ( vtkViewport *  viewport)
int SMESH_ScalarBarActor::RenderTranslucentGeometry ( vtkViewport *  )
void SMESH_ScalarBarActor::SetDistribution ( std::vector< int theNbValues)
virtual
void SMESH_ScalarBarActor::SetDistributionColor ( double  rgb[3])
void SMESH_ScalarBarActor::SetDistributionColoringType ( int  theDistributionColoringType)
void SMESH_ScalarBarActor::SetDistributionVisibility ( int  flag)
virtual
virtual void SMESH_ScalarBarActor::SetLabelTextProperty ( vtkTextProperty *  p)
virtual
virtual void SMESH_ScalarBarActor::SetLookupTable ( vtkScalarsToColors *  )
virtual
void SMESH_ScalarBarActor::SetOrientationToHorizontal ( )
void SMESH_ScalarBarActor::SetOrientationToVertical ( )
void SMESH_ScalarBarActor::SetTitleOnlyVisibility ( bool  theTitleOnlyVisibility)
virtual void SMESH_ScalarBarActor::SetTitleTextProperty ( vtkTextProperty *  p)
virtual
void SMESH_ScalarBarActor::ShallowCopy ( vtkProp *  prop)
void SMESH_ScalarBarActor::SizeTitle ( int titleSize,
int size,
vtkViewport *  viewport 
)
private
SMESH_ScalarBarActor::vtkGetMacro ( MaximumNumberOfColors  ,
int   
)
SMESH_ScalarBarActor::vtkGetMacro ( NumberOfLabels  ,
int   
)
SMESH_ScalarBarActor::vtkGetMacro ( Orientation  ,
int   
)
SMESH_ScalarBarActor::vtkGetObjectMacro ( LookupTable  ,
vtkScalarsToColors   
)
SMESH_ScalarBarActor::vtkGetObjectMacro ( TitleTextProperty  ,
vtkTextProperty   
)
SMESH_ScalarBarActor::vtkGetObjectMacro ( LabelTextProperty  ,
vtkTextProperty   
)
SMESH_ScalarBarActor::vtkGetStringMacro ( LabelFormat  )
SMESH_ScalarBarActor::vtkGetStringMacro ( Title  )
SMESH_ScalarBarActor::vtkSetClampMacro ( MaximumNumberOfColors  ,
int  ,
,
VTK_INT_MAX   
)
SMESH_ScalarBarActor::vtkSetClampMacro ( NumberOfLabels  ,
int  ,
,
64   
)
SMESH_ScalarBarActor::vtkSetClampMacro ( Orientation  ,
int  ,
,
 
)
SMESH_ScalarBarActor::vtkSetStringMacro ( LabelFormat  )
SMESH_ScalarBarActor::vtkSetStringMacro ( Title  )
SMESH_ScalarBarActor::vtkTypeMacro ( SMESH_ScalarBarActor  ,
vtkActor2D   
)

Field Documentation

vtkTimeStamp SMESH_ScalarBarActor::BuildTime
private

Referenced by RenderOpaqueGeometry().

char* SMESH_ScalarBarActor::LabelFormat
protected
vtkTextProperty* SMESH_ScalarBarActor::LabelTextProperty
protected
int SMESH_ScalarBarActor::LastOrigin[2]
private
int SMESH_ScalarBarActor::LastSize[2]
private
vtkScalarsToColors* SMESH_ScalarBarActor::LookupTable
protected
int SMESH_ScalarBarActor::MaximumNumberOfColors
protected
vtkPolyData* SMESH_ScalarBarActor::myDistribution
private
int SMESH_ScalarBarActor::myDistributionColoringType
private
vtkPolyDataMapper2D* SMESH_ScalarBarActor::myDistributionMapper
private
std::vector<int> SMESH_ScalarBarActor::myNbValues
private
bool SMESH_ScalarBarActor::myTitleOnlyVisibility
private
int SMESH_ScalarBarActor::NumberOfLabels
protected
int SMESH_ScalarBarActor::NumberOfLabelsBuilt
protected
int SMESH_ScalarBarActor::Orientation
protected
vtkPolyData* SMESH_ScalarBarActor::ScalarBar
private
vtkPolyDataMapper2D* SMESH_ScalarBarActor::ScalarBarMapper
private
vtkTextMapper** SMESH_ScalarBarActor::TextMappers
protected
char* SMESH_ScalarBarActor::Title
protected
vtkTextMapper* SMESH_ScalarBarActor::TitleMapper
private
vtkTextProperty* SMESH_ScalarBarActor::TitleTextProperty
protected