Version: 6.3.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

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

Static Public Member Functions

static VTKViewer_ActorNew ()

Protected Member Functions

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

Protected Attributes

bool myIsResolveCoincidentTopology
vtkFloatingPointType myPolygonOffsetFactor
vtkFloatingPointType myPolygonOffsetUnits
std::string myName
vtkFloatingPointType 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

static VTKViewer_Actor* VTKViewer_Actor.New ( ) [static]

Reimplemented in SALOME_Actor.

VTKViewer_Actor.vtkTypeMacro ( VTKViewer_Actor  ,
vtkLODActor   
)
const char * VTKViewer_Actor::getName ( ) [virtual]
Returns:
name
void VTKViewer_Actor::setName ( const char *  theName) [virtual]

Sets name

Parameters:
theName- new name

Reimplemented in SALOME_Actor.

void VTKViewer_Actor::SetOpacity ( vtkFloatingPointType  theOpacity) [virtual]
vtkFloatingPointType VTKViewer_Actor::GetOpacity ( ) [virtual]
void VTKViewer_Actor::SetColor ( vtkFloatingPointType  r,
vtkFloatingPointType  g,
vtkFloatingPointType  b 
) [virtual]

Change color

void VTKViewer_Actor::GetColor ( vtkFloatingPointType r,
vtkFloatingPointType g,
vtkFloatingPointType b 
) [virtual]

Get color

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

Change color

int VTKViewer_Actor::GetNodeObjId ( int  theVtkID) [virtual]

Maps VTK index of a node to corresponding object index

vtkFloatingPointType * VTKViewer_Actor::GetNodeCoord ( int  theObjID) [virtual]

Get coordinates of a node for given object index

int VTKViewer_Actor::GetElemObjId ( int  theVtkID) [virtual]

Maps VTK index of a cell to corresponding object index

vtkCell * VTKViewer_Actor::GetElemCell ( int  theObjID) [virtual]

Get corresponding #vtkCell for given object index

int VTKViewer_Actor::GetObjDimension ( const int  theObjId) [virtual]
Returns:
object dimension. Virtual method should be redifined by derived classes
void VTKViewer_Actor::SetMapper ( vtkMapper *  theMapper) [virtual]

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

vtkDataSet * VTKViewer_Actor::GetInput ( ) [virtual]

Allows to get initial #vtkDataSet

void VTKViewer_Actor::SetTransform ( VTKViewer_Transform theTransform) [virtual]

Apply view transformation

Parameters:
theTransform- view transformation

Reimplemented in SALOME_Actor.

unsigned long int VTKViewer_Actor::GetMTime ( ) [virtual]

To calculatate last modified time

void VTKViewer_Actor::SetRepresentation ( int  theMode) [virtual]

Set representation (VTK_SURFACE, VTK_POINTS, VTK_WIREFRAME and so on) param theMode - new mode

References VTKViewer_POINT_SIZE.

int VTKViewer_Actor::GetRepresentation ( ) [virtual]
Returns:
current representation mode
int VTKViewer_Actor::getDisplayMode ( ) [virtual]
Returns:
display mode
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

bool VTKViewer_Actor::IsInfinitive ( ) [virtual]
Returns:
infinive flag
vtkFloatingPointType * VTKViewer_Actor::GetBounds ( ) [virtual]
Returns:
current bounding box
void VTKViewer_Actor::GetBounds ( vtkFloatingPointType  theBounds[6])
Returns:
current bounding box
bool VTKViewer_Actor::IsSetCamera ( ) const [virtual]
bool VTKViewer_Actor::IsResizable ( ) const [virtual]
void VTKViewer_Actor::SetSize ( const vtkFloatingPointType  ) [virtual]
void VTKViewer_Actor::SetCamera ( vtkCamera *  ) [virtual]
void VTKViewer_Actor::SetResolveCoincidentTopology ( bool  theIsResolve)

Set ResolveCoincidentTopology flag

Parameters:
theIsResolve- new flag value
void VTKViewer_Actor::SetPolygonOffsetParameters ( vtkFloatingPointType  factor,
vtkFloatingPointType  units 
)

Set polygon offset parameters

Parameters:
factor,units- Opengl polygon offset parameters
void VTKViewer_Actor::GetPolygonOffsetParameters ( vtkFloatingPointType factor,
vtkFloatingPointType units 
)

Get polygon offset parameters

Parameters:
factor,units- Opengl polygon offset parameters
void VTKViewer_Actor::Render ( vtkRenderer *  ren,
vtkMapper *  m 
) [virtual]

Renders actor

vtkFloatingPointType VTKViewer_Actor::GetShrinkFactor ( ) [virtual]
Returns:
shrink factor
bool VTKViewer_Actor::IsShrunkable ( ) [virtual]
Returns:
true if the actor is shrunkable
bool VTKViewer_Actor::IsShrunk ( ) [virtual]
Returns:
true if the actor is shrunk
void VTKViewer_Actor::SetShrink ( ) [virtual]

Insert shrink filter into pipeline

void VTKViewer_Actor::UnShrink ( ) [virtual]

Remove shrink filter from pipeline

void VTKViewer_Actor::AddToRender ( vtkRenderer *  theRenderer) [virtual]

To publish the actor an all its internal devices

Reimplemented in SALOME_Actor.

void VTKViewer_Actor::RemoveFromRender ( vtkRenderer *  theRenderer) [virtual]

To remove the actor an all its internal devices

Reimplemented in SALOME_Actor.

void VTKViewer_Actor::GetChildActors ( vtkActorCollection *  ) [virtual]

Used to obtain all dependent actors

bool VTKViewer_Actor::hasHighlight ( ) [virtual]
Returns:
true if the descendant of the VTKViewer_Actor will implement its own highlight or not
bool VTKViewer_Actor::isHighlighted ( ) [virtual]
Returns:
true if the VTKViewer_Actor is already highlighted
bool VTKViewer_Actor::isPreselected ( ) [virtual]
Returns:
true if the VTKViewer_Actor is already preselected
void VTKViewer_Actor::SetPreSelected ( bool  thePreselect = false) [virtual]

Set preselection mode

void VTKViewer_Actor::highlight ( bool  theIsHighlight) [virtual]

Just to update visibility of the highlight devices

Reimplemented in SALOME_Actor.

void VTKViewer_Actor.SetPreviewProperty ( vtkProperty *  theProperty)
void VTKViewer_Actor::SetQuadraticArcMode ( bool  theFlag) [virtual]

On/Off representation 2D quadratic element as arked polygon

bool VTKViewer_Actor::GetQuadraticArcMode ( ) const [virtual]

Return true if 2D quadratic element displayed as arked polygon

void VTKViewer_Actor::SetQuadraticArcAngle ( vtkFloatingPointType  theMaxAngle) [virtual]

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

vtkFloatingPointType VTKViewer_Actor::GetQuadraticArcAngle ( ) const [virtual]

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

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.

void VTKViewer_Actor::InitPipeLine ( vtkMapper *  theMapper) [protected]

Initialization


Field Documentation

std::string VTKViewer_Actor.myName [protected]
bool VTKViewer_Actor.myIsInfinite [protected]
std::vector<vtkPassThroughFilter*> VTKViewer_Actor.myPassFilter [protected]
vtkProperty* VTKViewer_Actor.myProperty [protected]
vtkProperty* VTKViewer_Actor.PreviewProperty [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS