Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VTKViewer_Actor Class Reference

#include <VTKViewer_Actor.h>

Inheritance diagram for VTKViewer_Actor:
Inheritance graph

Public Member Functions

 vtkTypeMacro (VTKViewer_Actor, vtkLODActor)
 
virtual const char * getName ()
 Get its name. More...
 
virtual void setName (const char *theName)
 Name the VTKViewer_Actor. More...
 
virtual void SetOpacity (double theOpacity)
 Change opacity. More...
 
virtual double GetOpacity ()
 Get current opacity. More...
 
virtual void SetColor (double r, double g, double b)
 Change color. More...
 
virtual void GetColor (double &r, double &g, double &b)
 Get current color. More...
 
virtual void SetColor (const double theRGB[3])
 Change color. More...
 
virtual void SetMaterial (std::vector< vtkProperty * > theProps)
 Change material. More...
 
virtual vtkProperty * GetFrontMaterial ()
 Get current front material. More...
 
virtual vtkProperty * GetBackMaterial ()
 Get current back material. More...
 
virtual int GetNodeObjId (int theVtkID)
 Maps VTK index of a node to corresponding object index. More...
 
virtual double * GetNodeCoord (int theObjID)
 Get coordinates of a node for given object index. More...
 
virtual int GetElemObjId (int theVtkID)
 Maps VTK index of a cell to corresponding object index. More...
 
virtual vtkCell * GetElemCell (int theObjID)
 Get corresponding #vtkCell for given object index. More...
 
virtual int GetObjDimension (const int theObjId)
 Get dimension of corresponding mesh element. More...
 
virtual void SetMapper (vtkMapper *theMapper)
 To insert some additional filters and then sets the given #vtkMapper. More...
 
virtual vtkDataSet * GetInput ()
 Allows to get initial #vtkDataSet. More...
 
virtual void SetTransform (VTKViewer_Transform *theTransform)
 Apply view transformation. More...
 
virtual vtkMTimeType GetMTime ()
 To calculatate last modified time. More...
 
virtual void SetRepresentation (int theMode)
 Set representation (VTK_SURFACE, VTK_POINTS, VTK_WIREFRAME and so on) More...
 
virtual int GetRepresentation ()
 Get current representation mode. More...
 
virtual int getDisplayMode ()
 Get current display mode (obsolete) More...
 
virtual void setDisplayMode (int theMode)
 Set display mode (obsolete) More...
 
void SetInfinitive (bool theIsInfinite)
 Set infinive flag. More...
 
virtual bool IsInfinitive ()
 Get infinive flag. More...
 
virtual double * GetBounds ()
 To calcualte current bounding box. More...
 
void GetBounds (double bounds[6])
 To calcualte current bounding box. More...
 
virtual bool IsSetCamera () const
 
virtual bool IsResizable () const
 
virtual void SetSize (const double)
 
virtual void SetCamera (vtkCamera *)
 
void SetResolveCoincidentTopology (bool theIsResolve)
 Set ResolveCoincidentTopology flag. More...
 
void SetPolygonOffsetParameters (double factor, double units)
 Set ResolveCoincidentTopology parameters. More...
 
void GetPolygonOffsetParameters (double &factor, double &units)
 Get current ResolveCoincidentTopology parameters. More...
 
virtual void Render (vtkRenderer *, vtkMapper *)
 
virtual double GetShrinkFactor ()
 Get current shrink factor. More...
 
virtual bool IsShrunkable ()
 Is the actor is shrunkable. More...
 
virtual bool IsShrunk ()
 Is the actor is shrunk. More...
 
virtual void SetShrink ()
 Insert shrink filter into pipeline. More...
 
virtual void UnShrink ()
 Remove shrink filter from pipeline. More...
 
virtual void AddToRender (vtkRenderer *theRendere)
 To publish the actor an all its internal devices. More...
 
virtual void RemoveFromRender (vtkRenderer *theRendere)
 To remove the actor an all its internal devices. More...
 
virtual void GetChildActors (vtkActorCollection *)
 Used to obtain all dependent actors. More...
 
virtual void EnableSelection (bool enable)
 Is notified on enabling/disabling selection. More...
 
virtual bool hasHighlight ()
 Ask, if the descendant of the VTKViewer_Actor will implement its own highlight or not. More...
 
virtual bool isHighlighted ()
 Ask, if the VTKViewer_Actor is already highlighted. More...
 
virtual bool isPreselected ()
 Ask, if the VTKViewer_Actor is already preselected. More...
 
virtual void SetPreSelected (bool thePreselect=false)
 Set preselection mode. More...
 
virtual void highlight (bool theHighlight)
 Just to update visibility of the highlight devices. More...
 
void SetPreviewProperty (vtkProperty *theProperty)
 
virtual void SetQuadraticArcMode (bool theFlag)
 Setting for displaying quadratic elements. More...
 
virtual bool GetQuadraticArcMode () const
 
virtual void SetQuadraticArcAngle (double theMaxAngle)
 
virtual double GetQuadraticArcAngle () const
 
virtual vtkDataSet * GetHighlightedDataSet ()
 Return pointer to the dataset, which used to calculation of the bounding box of the actor. More...
 

Static Public Member Functions

static VTKViewer_ActorNew ()
 

Protected Member Functions

void InitPipeLine (vtkMapper *theMapper)
 
 VTKViewer_Actor ()
 
 ~VTKViewer_Actor ()
 

Protected Attributes

bool myIsResolveCoincidentTopology
 
double myPolygonOffsetFactor
 
double myPolygonOffsetUnits
 
std::string myName
 
double myOpacity
 
int myDisplayMode
 
bool myIsInfinite
 
bool myStoreMapping
 
VTKViewer_GeometryFiltermyGeomFilter
 
VTKViewer_TransformFiltermyTransformFilter
 
std::vector
< vtkPassThroughFilter * > 
myPassFilter
 
int myRepresentation
 
vtkProperty * myProperty
 
vtkProperty * PreviewProperty
 
bool myIsPreselected
 
bool myIsHighlighted
 

Constructor & Destructor Documentation

VTKViewer_Actor::VTKViewer_Actor ( )
protected

Constructor

VTKViewer_Actor::~VTKViewer_Actor ( )
protected

Destructor

Member Function Documentation

void VTKViewer_Actor::AddToRender ( vtkRenderer *  theRenderer)
virtual

To publish the actor an all its internal devices

Reimplemented in SALOME_Actor.

virtual void VTKViewer_Actor::EnableSelection ( bool  enable)
inlinevirtual
vtkProperty * VTKViewer_Actor::GetBackMaterial ( )
virtual

Get current back material

double * VTKViewer_Actor::GetBounds ( )
virtual
Returns
current bounding box
void VTKViewer_Actor::GetBounds ( double  theBounds[6])
Returns
current bounding box
void VTKViewer_Actor::GetChildActors ( vtkActorCollection *  )
virtual

Used to obtain all dependent actors

void VTKViewer_Actor::GetColor ( double &  r,
double &  g,
double &  b 
)
virtual

Get color

int VTKViewer_Actor::getDisplayMode ( )
virtual
Returns
display mode
vtkCell * VTKViewer_Actor::GetElemCell ( int  theObjID)
virtual

Get corresponding #vtkCell for given object index

int VTKViewer_Actor::GetElemObjId ( int  theVtkID)
virtual

Maps VTK index of a cell to corresponding object index

vtkProperty * VTKViewer_Actor::GetFrontMaterial ( )
virtual

Get current front material

vtkDataSet * VTKViewer_Actor::GetHighlightedDataSet ( )
virtual

Return pointer to the dataset, which used to calculation of the bounding box of the actor. By default it is the input dataset.

References GetInput().

vtkDataSet * VTKViewer_Actor::GetInput ( )
virtual

Allows to get initial #vtkDataSet

vtkMTimeType VTKViewer_Actor::GetMTime ( )
virtual

To calculatate last modified time

const char * VTKViewer_Actor::getName ( )
virtual
Returns
name

References myName.

double * VTKViewer_Actor::GetNodeCoord ( int  theObjID)
virtual

Get coordinates of a node for given object index

int VTKViewer_Actor::GetNodeObjId ( int  theVtkID)
virtual

Maps VTK index of a node to corresponding object index

int VTKViewer_Actor::GetObjDimension ( const int  theObjId)
virtual
Returns
object dimension. Virtual method should be redifined by derived classes
double VTKViewer_Actor::GetOpacity ( )
virtual
void VTKViewer_Actor::GetPolygonOffsetParameters ( double &  factor,
double &  units 
)

Get polygon offset parameters

Parameters
factor,units- Opengl polygon offset parameters
double VTKViewer_Actor::GetQuadraticArcAngle ( ) const
virtual

Return Max angle of the representation 2D quadratic element as arked polygon

References VTKViewer_GeometryFilter::GetQuadraticArcAngle(), and myGeomFilter.

bool VTKViewer_Actor::GetQuadraticArcMode ( ) const
virtual

Return true if 2D quadratic element displayed as arked polygon

References VTKViewer_GeometryFilter::GetQuadraticArcMode(), and myGeomFilter.

int VTKViewer_Actor::GetRepresentation ( )
virtual
Returns
current representation mode
double VTKViewer_Actor::GetShrinkFactor ( )
virtual
Returns
shrink factor
bool VTKViewer_Actor::hasHighlight ( )
virtual
Returns
true if the descendant of the VTKViewer_Actor will implement its own highlight or not
void VTKViewer_Actor::highlight ( bool  theIsHighlight)
virtual

Just to update visibility of the highlight devices

Reimplemented in SALOME_Actor.

void VTKViewer_Actor::InitPipeLine ( vtkMapper *  theMapper)
protected

Initialization

bool VTKViewer_Actor::isHighlighted ( )
virtual
Returns
true if the VTKViewer_Actor is already highlighted
bool VTKViewer_Actor::IsInfinitive ( )
virtual
Returns
infinive flag
bool VTKViewer_Actor::isPreselected ( )
virtual
Returns
true if the VTKViewer_Actor is already preselected
bool VTKViewer_Actor::IsResizable ( ) const
virtual
bool VTKViewer_Actor::IsSetCamera ( ) const
virtual
bool VTKViewer_Actor::IsShrunk ( )
virtual
Returns
true if the actor is shrunk
bool VTKViewer_Actor::IsShrunkable ( )
virtual
Returns
true if the actor is shrunkable
static VTKViewer_Actor* VTKViewer_Actor::New ( )
static
void VTKViewer_Actor::RemoveFromRender ( vtkRenderer *  theRenderer)
virtual

To remove the actor an all its internal devices

Reimplemented in SALOME_Actor.

void VTKViewer_Actor::Render ( vtkRenderer *  ren,
vtkMapper *  m 
)
virtual

Renders actor

void VTKViewer_Actor::SetCamera ( vtkCamera *  )
virtual
void VTKViewer_Actor::SetColor ( double  r,
double  g,
double  b 
)
virtual

Change color

void VTKViewer_Actor::SetColor ( const double  theRGB[3])
virtual

Change color

void VTKViewer_Actor::setDisplayMode ( int  theMode)
virtual

Change display mode

void VTKViewer_Actor::SetInfinitive ( bool  theIsInfinite)

Infinitive means actor without size (point for example), which is not taken into account in calculation of boundaries of the scene

void VTKViewer_Actor::SetMapper ( vtkMapper *  theMapper)
virtual

To insert some additional filters and then sets the given #vtkMapper

void VTKViewer_Actor::SetMaterial ( std::vector< vtkProperty * >  theProps)
virtual

Change material

void VTKViewer_Actor::setName ( const char *  theName)
virtual

Sets name

Parameters
theName- new name

Reimplemented in SALOME_Actor.

References myName.

void VTKViewer_Actor::SetOpacity ( double  theOpacity)
virtual
void VTKViewer_Actor::SetPolygonOffsetParameters ( double  factor,
double  units 
)

Set polygon offset parameters

Parameters
factor,units- Opengl polygon offset parameters
void VTKViewer_Actor::SetPreSelected ( bool  thePreselect = false)
virtual

Set preselection mode

void VTKViewer_Actor::SetPreviewProperty ( vtkProperty *  theProperty)
void VTKViewer_Actor::SetQuadraticArcAngle ( double  theMaxAngle)
virtual

Set Max angle for representation 2D quadratic element as arked polygon

References myGeomFilter, and VTKViewer_GeometryFilter::SetQuadraticArcAngle().

void VTKViewer_Actor::SetQuadraticArcMode ( bool  theFlag)
virtual

On/Off representation 2D quadratic element as arked polygon

References myGeomFilter, and VTKViewer_GeometryFilter::SetQuadraticArcMode().

void VTKViewer_Actor::SetRepresentation ( int  theMode)
virtual
void VTKViewer_Actor::SetResolveCoincidentTopology ( bool  theIsResolve)

Set ResolveCoincidentTopology flag

Parameters
theIsResolve- new flag value
void VTKViewer_Actor::SetShrink ( )
virtual

Insert shrink filter into pipeline

void VTKViewer_Actor::SetSize ( const double  )
virtual
void VTKViewer_Actor::SetTransform ( VTKViewer_Transform theTransform)
virtual

Apply view transformation

Parameters
theTransform- view transformation

Reimplemented in SALOME_Actor.

void VTKViewer_Actor::UnShrink ( )
virtual

Remove shrink filter from pipeline

VTKViewer_Actor::vtkTypeMacro ( VTKViewer_Actor  ,
vtkLODActor   
)

Member Data Documentation

int VTKViewer_Actor::myDisplayMode
protected
VTKViewer_GeometryFilter* VTKViewer_Actor::myGeomFilter
protected
bool VTKViewer_Actor::myIsHighlighted
protected
bool VTKViewer_Actor::myIsInfinite
protected
bool VTKViewer_Actor::myIsPreselected
protected
bool VTKViewer_Actor::myIsResolveCoincidentTopology
protected
std::string VTKViewer_Actor::myName
protected
double VTKViewer_Actor::myOpacity
protected
std::vector<vtkPassThroughFilter*> VTKViewer_Actor::myPassFilter
protected
double VTKViewer_Actor::myPolygonOffsetFactor
protected
double VTKViewer_Actor::myPolygonOffsetUnits
protected
vtkProperty* VTKViewer_Actor::myProperty
protected
int VTKViewer_Actor::myRepresentation
protected
bool VTKViewer_Actor::myStoreMapping
protected
VTKViewer_TransformFilter* VTKViewer_Actor::myTransformFilter
protected
vtkProperty* VTKViewer_Actor::PreviewProperty
protected

The documentation for this class was generated from the following files: