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

#include <SVTK_DeviceActor.h>

Inheritance diagram for SVTK_DeviceActor:
Inheritance graph

Public Member Functions

 vtkTypeMacro (SVTK_DeviceActor, vtkLODActor)
 
virtual void SetTransform (VTKViewer_Transform *theTransform)
 Apply a view transformation. 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 SetInputData (vtkDataSet *theDataSet)
 Allows to set initial #vtkDataSet. More...
 
virtual void SetInputConnection (vtkAlgorithmOutput *theAlgorithmOutput)
 Allows to set initial #vtkAlgorithmOutput. More...
 
virtual vtkMTimeType GetMTime ()
 
virtual void Render (vtkRenderer *, vtkMapper *)
 
VTKViewer_DataSetMapperGetDataSetMapper ()
 
virtual void SetQuadraticArcMode (bool theFlag)
 Setting for displaying quadratic elements. More...
 
virtual bool GetQuadraticArcMode ()
 
virtual void SetQuadraticArcAngle (double theMaxAngle)
 
virtual double GetQuadraticArcAngle ()
 
virtual void SetCoincident3DAllowed (bool theIsFeatureEdgesAllowed)
 
virtual bool IsCoincident3DAllowed () const
 
void SetResolveCoincidentTopology (bool theIsResolve)
 
For selection mapping purpose
virtual int GetNodeObjId (int theVtkID)
 
virtual double * GetNodeCoord (int theObjID)
 
virtual int GetElemObjId (int theVtkID)
 
virtual vtkCell * GetElemCell (int theObjID)
 
virtual void SetStoreMapping (bool theStoreMapping)
 To provide VTK to Object and backward mapping. More...
 
For shrink mamnagement purpose
double GetShrinkFactor ()
 
virtual void SetShrinkFactor (double value)
 
virtual void SetShrinkable (bool theIsShrinkable)
 
bool IsShrunkable ()
 
bool IsShrunk ()
 
virtual void SetShrink ()
 
virtual void UnShrink ()
 
For feature edges management purpose
virtual bool IsFeatureEdgesAllowed ()
 
virtual void SetFeatureEdgesAllowed (bool theIsFeatureEdgesAllowed)
 
virtual bool IsFeatureEdgesEnabled ()
 
virtual void SetFeatureEdgesEnabled (bool theIsFeatureEdgesEnabled)
 
virtual double GetFeatureEdgesAngle ()
 
virtual void SetFeatureEdgesAngle (double theAngle)
 
virtual void GetFeatureEdgesFlags (bool &theIsFeatureEdges, bool &theIsBoundaryEdges, bool &theIsManifoldEdges, bool &theIsNonManifoldEdges)
 
virtual void SetFeatureEdgesFlags (bool theIsFeatureEdges, bool theIsBoundaryEdges, bool theIsManifoldEdges, bool theIsNonManifoldEdges)
 
virtual bool GetFeatureEdgesColoring ()
 
virtual void SetFeatureEdgesColoring (bool theIsColoring)
 
For representation mamnagement purpose
virtual void SetRepresentation (VTKViewer::Representation::Type theMode)
 
VTKViewer::Representation::Type GetRepresentation ()
 
virtual double GetDefaultPointSize ()
 
virtual double GetDefaultLineWidth ()
 
bool IsShaded ()
 
void SetShaded (bool theShaded)
 
For ball marker management purpose
void SetBallEnabled (bool)
 
For marker management purpose
void SetMarkerEnabled (bool)
 
void SetBallScale (double)
 
void SetMarkerStd (VTK::MarkerType, VTK::MarkerScale)
 
void SetMarkerTexture (int, VTK::MarkerTexture)
 
VTK::MarkerType GetMarkerType ()
 
VTK::MarkerScale GetMarkerScale ()
 
int GetMarkerTexture ()
 

Static Public Member Functions

static SVTK_DeviceActorNew ()
 

Protected Member Functions

void InitPipeLine (vtkMapper *theMapper)
 To initialize internal pipeline. More...
 
void SetPolygonOffsetParameters (double factor, double units)
 
void GetPolygonOffsetParameters (double &factor, double &units)
 
 SVTK_DeviceActor ()
 
 ~SVTK_DeviceActor ()
 

Protected Attributes

VTKViewer::Representation::Type myRepresentation
 
vtkProperty * myProperty
 
bool myIsShaded
 
VTKViewer_GeometryFiltermyGeomFilter
 
VTKViewer_TransformFiltermyTransformFilter
 
std::vector
< vtkPassThroughFilter * > 
myPassFilter
 
vtkShrinkFiltermyShrinkFilter
 
vtkFeatureEdges * myFeatureEdges
 
VTKViewer_DataSetMappermyMapper
 
bool myIsShrinkable
 
bool myIsShrunk
 
bool myIsFeatureEdgesAllowed
 
bool myIsFeatureEdgesEnabled
 
bool myIsResolveCoincidentTopology
 
double myPolygonOffsetFactor
 
double myPolygonOffsetUnits
 

Private Member Functions

 SVTK_DeviceActor (const SVTK_DeviceActor &)
 
void operator= (const SVTK_DeviceActor &)
 

Constructor & Destructor Documentation

SVTK_DeviceActor::SVTK_DeviceActor ( )
protected
SVTK_DeviceActor::~SVTK_DeviceActor ( )
protected

Destructor

SVTK_DeviceActor::SVTK_DeviceActor ( const SVTK_DeviceActor )
private

Member Function Documentation

VTKViewer_DataSetMapper * SVTK_DeviceActor::GetDataSetMapper ( )

References myMapper.

double SVTK_DeviceActor::GetDefaultLineWidth ( )
virtual
Returns
default line width
double SVTK_DeviceActor::GetDefaultPointSize ( )
virtual
Returns
default point size
vtkCell * SVTK_DeviceActor::GetElemCell ( int  theObjID)
virtual

Get corresponding #vtkCell for given object index

int SVTK_DeviceActor::GetElemObjId ( int  theVtkID)
virtual

Maps VTK index of a cell to corresponding object index

double SVTK_DeviceActor::GetFeatureEdgesAngle ( )
virtual
Returns
angle of feature edges' filter
bool SVTK_DeviceActor::GetFeatureEdgesColoring ( )
virtual
Returns
feature edges' coloring flag
void SVTK_DeviceActor::GetFeatureEdgesFlags ( bool &  theIsFeatureEdges,
bool &  theIsBoundaryEdges,
bool &  theIsManifoldEdges,
bool &  theIsNonManifoldEdges 
)
virtual

Gets information about kinds of edges which are displayed by feature edges' filter

Parameters
theIsFeatureEdgesflag which shows whether feature edges are displayed
theIsBoundaryEdgesflag which shows whether boundary edges are displayed
theIsManifoldEdgesflag which shows whether manifold edges are displayed
theIsNonManifoldEdgesflag which shows whether non-manifold edges are displayed
vtkDataSet * SVTK_DeviceActor::GetInput ( )
virtual

Allows to get initial vtkDataSet

VTK::MarkerScale SVTK_DeviceActor::GetMarkerScale ( )

Get scale of the point marker

Returns
scale of the point marker

References VTKViewer_DataSetMapper::GetMarkerScale(), and myMapper.

int SVTK_DeviceActor::GetMarkerTexture ( )

Get texture identifier of the point marker

Returns
texture identifier of the point marker

References VTKViewer_DataSetMapper::GetMarkerTexture(), and myMapper.

VTK::MarkerType SVTK_DeviceActor::GetMarkerType ( )

Get type of the point marker

Returns
type of the point marker

References VTKViewer_DataSetMapper::GetMarkerType(), and myMapper.

vtkMTimeType SVTK_DeviceActor::GetMTime ( )
virtual
Returns
time of modification
double * SVTK_DeviceActor::GetNodeCoord ( int  theObjID)
virtual

Get coordinates of a node for given object index

int SVTK_DeviceActor::GetNodeObjId ( int  theVtkID)
virtual

Maps VTK index of a node to corresponding object index

void SVTK_DeviceActor::GetPolygonOffsetParameters ( double &  factor,
double &  units 
)
protected

Get polygon offset parameters

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

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

References VTKViewer_GeometryFilter::GetQuadraticArcAngle(), and myGeomFilter.

bool SVTK_DeviceActor::GetQuadraticArcMode ( )
virtual

Return true if 2D quadratic element displayed as arked polygon

References VTKViewer_GeometryFilter::GetQuadraticArcMode(), and myGeomFilter.

VTKViewer::Representation::Type SVTK_DeviceActor::GetRepresentation ( )
Returns
current representation mode
double SVTK_DeviceActor::GetShrinkFactor ( )
Returns
shrink factor
void SVTK_DeviceActor::InitPipeLine ( vtkMapper *  theMapper)
protected

To initialize internal pipeline

bool SVTK_DeviceActor::IsCoincident3DAllowed ( ) const
virtual
bool SVTK_DeviceActor::IsFeatureEdgesAllowed ( )
virtual
Returns
true if feature edges are allowed for this actor
bool SVTK_DeviceActor::IsFeatureEdgesEnabled ( )
virtual
Returns
true if feature edges are enabled
bool SVTK_DeviceActor::IsShaded ( )
Returns
true if actor is shaded
bool SVTK_DeviceActor::IsShrunk ( )
Returns
true if actor is shrunkable
bool SVTK_DeviceActor::IsShrunkable ( )
Returns
true if actor is shrinkable
static SVTK_DeviceActor* SVTK_DeviceActor::New ( )
static
void SVTK_DeviceActor::operator= ( const SVTK_DeviceActor )
private
void SVTK_DeviceActor::Render ( vtkRenderer *  ren,
vtkMapper *  m 
)
virtual

Renders actor

void SVTK_DeviceActor::SetBallEnabled ( bool  theBallEnabled)

Set ball drawing enabled

Parameters
theBallEnabledflag to enable/disable balls

References myMapper, and VTKViewer_DataSetMapper::SetBallEnabled().

void SVTK_DeviceActor::SetBallScale ( double  theBallScale)

Set ball scale factor

Parameters
theBallScaledouble value a scale factor of ball element

References myMapper, and VTKViewer_DataSetMapper::SetBallScale().

void SVTK_DeviceActor::SetCoincident3DAllowed ( bool  theIsFeatureEdgesAllowed)
virtual
void SVTK_DeviceActor::SetFeatureEdgesAllowed ( bool  theIsFeatureEdgesAllowed)
virtual

Allows feature edges for this actor on or off

Parameters
theIsFeatureEdgesAllowed- flag which allows feature edges for this actor on or off
void SVTK_DeviceActor::SetFeatureEdgesAngle ( double  theAngle)
virtual

Sets angle of feature edges' filter

Parameters
theAngleangle of feature edges' filter
void SVTK_DeviceActor::SetFeatureEdgesColoring ( bool  theIsColoring)
virtual

Sets feature edges' coloring flag

Parameters
theIsColoringfeature edges' coloring flag
void SVTK_DeviceActor::SetFeatureEdgesEnabled ( bool  theIsFeatureEdgesEnabled)
virtual

Enables feature edges on or off

Parameters
theIsFeatureEdgesEnabled- flag which enables feature edges on or off
void SVTK_DeviceActor::SetFeatureEdgesFlags ( bool  theIsFeatureEdges,
bool  theIsBoundaryEdges,
bool  theIsManifoldEdges,
bool  theIsNonManifoldEdges 
)
virtual

Sets different kinds of edges to be displayed by feature edges' filter

Parameters
theIsFeatureEdgesflag which displays feature edges
theIsBoundaryEdgesflag which displays boundary edges
theIsManifoldEdgesflag which displays manifold edges
theIsNonManifoldEdgesflag which displays non-manifold edges
void SVTK_DeviceActor::SetInputConnection ( vtkAlgorithmOutput *  theAlgorithmOutput)
virtual

Allows to set initial vtkDataSet

void SVTK_DeviceActor::SetInputData ( vtkDataSet *  theDataSet)
virtual

Allows to set initial vtkDataSet

void SVTK_DeviceActor::SetMapper ( vtkMapper *  theMapper)
virtual

To insert some additional filters and then sets the given vtkMapper

void SVTK_DeviceActor::SetMarkerEnabled ( bool  theMarkerEnabled)

Set point marker enabled

Parameters
theMarkerEnabledflag to enable/disable point marker

References myMapper, and VTKViewer_DataSetMapper::SetMarkerEnabled().

void SVTK_DeviceActor::SetMarkerStd ( VTK::MarkerType  theMarkerType,
VTK::MarkerScale  theMarkerScale 
)

Set standard point marker

Parameters
theMarkerTypetype of the marker
theMarkerScalescale of the marker

References myMapper, and VTKViewer_DataSetMapper::SetMarkerStd().

void SVTK_DeviceActor::SetMarkerTexture ( int  theMarkerId,
VTK::MarkerTexture  theMarkerTexture 
)

Set custom point marker

Parameters
theMarkerIdid of the marker texture
theMarkerTexturemarker texture

References myMapper, and VTKViewer_DataSetMapper::SetMarkerTexture().

void SVTK_DeviceActor::SetPolygonOffsetParameters ( double  factor,
double  units 
)
protected

Set polygon offset parameters

Parameters
factor,units- Opengl polygon offset parameters
void SVTK_DeviceActor::SetQuadraticArcAngle ( double  theMaxAngle)
virtual

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

References myGeomFilter, and VTKViewer_GeometryFilter::SetQuadraticArcAngle().

void SVTK_DeviceActor::SetQuadraticArcMode ( bool  theFlag)
virtual

On/Off representation 2D quadratic element as arked polygon

References myGeomFilter, and VTKViewer_GeometryFilter::SetQuadraticArcMode().

void SVTK_DeviceActor::SetRepresentation ( VTKViewer::Representation::Type  theMode)
virtual
void SVTK_DeviceActor::SetResolveCoincidentTopology ( bool  theIsResolve)
void SVTK_DeviceActor::SetShaded ( bool  theShaded)

Sets shaded state of actor

Parameters
theShaded- new shaded state
void SVTK_DeviceActor::SetShrink ( )
virtual

Insert shrink filter into pipeline

void SVTK_DeviceActor::SetShrinkable ( bool  theIsShrinkable)
virtual

Changes shrinkable state of actor theIsShrinkable - new shrinkable state

void SVTK_DeviceActor::SetShrinkFactor ( double  theValue)
virtual

Changes shrink factor

Parameters
theValue- new shrink factor
void SVTK_DeviceActor::SetStoreMapping ( bool  theStoreMapping)
virtual

To provide VTK to Object and backward mapping

References myGeomFilter, and VTKViewer_GeometryFilter::SetStoreMapping().

void SVTK_DeviceActor::SetTransform ( VTKViewer_Transform theTransform)
virtual

Apply a view transformation

Parameters
theTransform- transformation
void SVTK_DeviceActor::UnShrink ( )
virtual

Remove shrink filter from pipeline

SVTK_DeviceActor::vtkTypeMacro ( SVTK_DeviceActor  ,
vtkLODActor   
)

Member Data Documentation

vtkFeatureEdges* SVTK_DeviceActor::myFeatureEdges
protected
VTKViewer_GeometryFilter* SVTK_DeviceActor::myGeomFilter
protected
bool SVTK_DeviceActor::myIsFeatureEdgesAllowed
protected
bool SVTK_DeviceActor::myIsFeatureEdgesEnabled
protected
bool SVTK_DeviceActor::myIsResolveCoincidentTopology
protected
bool SVTK_DeviceActor::myIsShaded
protected
bool SVTK_DeviceActor::myIsShrinkable
protected
bool SVTK_DeviceActor::myIsShrunk
protected
VTKViewer_DataSetMapper* SVTK_DeviceActor::myMapper
protected
std::vector<vtkPassThroughFilter*> SVTK_DeviceActor::myPassFilter
protected
double SVTK_DeviceActor::myPolygonOffsetFactor
protected
double SVTK_DeviceActor::myPolygonOffsetUnits
protected
vtkProperty* SVTK_DeviceActor::myProperty
protected
VTKViewer::Representation::Type SVTK_DeviceActor::myRepresentation
protected
vtkShrinkFilter* SVTK_DeviceActor::myShrinkFilter
protected
VTKViewer_TransformFilter* SVTK_DeviceActor::myTransformFilter
protected

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