Open CASCADE Technology  7.0.0
Public Member Functions

IVtkTools_ShapeDataSource Class Reference

VTK data source for OCC shapes polygonal data. More...

#include <IVtkTools_ShapeDataSource.hxx>

Inheritance diagram for IVtkTools_ShapeDataSource:
Inheritance graph
[legend]

Public Member Functions

 vtkTypeMacro (IVtkTools_ShapeDataSource, vtkPolyDataAlgorithm) static IVtkTools_ShapeDataSource *New()
 
Initialization
void SetShape (const IVtkOCC_Shape::Handle &theOccShape)
 Set the source OCCT shape. More...
 
IVtkOCC_Shape::Handle GetShape ()
 Get the source OCCT shape. More...
 
void FastTransformModeOn ()
 Set the source OCCT shape. More...
 
void FastTransformModeOff ()
 Set the source OCCT shape. More...
 
Data accessors
IVtk_IdType GetId () const
 Returns ID of the shape used as a topological input for this data source. More...
 
Standard_Boolean Contains (const IVtkOCC_Shape::Handle &theOccShape) const
 Checks if the internal OccShape pointer is the same the argument. More...
 
vtkSmartPointer< vtkIdTypeArray > SubShapeIDs ()
 Access to the shape's sub-shape ids array. More...
 

Protected Member Functions

Interface to override
virtual int RequestData (vtkInformation *theRequest, vtkInformationVector **theInputVector, vtkInformationVector *theOutputVector)
 This is called by the superclass. This is the method you should override if you use this class as ancestor. Build output polygonal data set from the shape wrapper. More...
 

Internals

vtkSmartPointer< vtkPolyData > transform (vtkPolyData *theSource, const gp_Trsf &theTrsf) const
 Transforms the passed polygonal data by the given OCCT transformation matrix. More...
 
 IVtkTools_ShapeDataSource ()
 Shape wrapper used as an input. More...
 
 ~IVtkTools_ShapeDataSource ()
 Shape wrapper used as an input. More...
 

Detailed Description

VTK data source for OCC shapes polygonal data.

Constructor & Destructor Documentation

IVtkTools_ShapeDataSource::IVtkTools_ShapeDataSource ( )
protected

Shape wrapper used as an input.

IVtkTools_ShapeDataSource::~IVtkTools_ShapeDataSource ( )
protected

Shape wrapper used as an input.

Member Function Documentation

Standard_Boolean IVtkTools_ShapeDataSource::Contains ( const IVtkOCC_Shape::Handle theOccShape) const

Checks if the internal OccShape pointer is the same the argument.

Parameters
[in]shapeOccShape pointer to be checked.
Returns
true if the two OccShape instances are the same, and false otherwise.
void IVtkTools_ShapeDataSource::FastTransformModeOff ( )
inline

Set the source OCCT shape.

Parameters
theOccShape[in] OCCT shape wrapper.
void IVtkTools_ShapeDataSource::FastTransformModeOn ( )
inline

Set the source OCCT shape.

Parameters
theOccShape[in] OCCT shape wrapper.
IVtk_IdType IVtkTools_ShapeDataSource::GetId ( ) const

Returns ID of the shape used as a topological input for this data source.

Returns
requested ID.
IVtkOCC_Shape::Handle IVtkTools_ShapeDataSource::GetShape ( )

Get the source OCCT shape.

Returns
occShape OCCT shape wrapper.
virtual int IVtkTools_ShapeDataSource::RequestData ( vtkInformation *  theRequest,
vtkInformationVector **  theInputVector,
vtkInformationVector *  theOutputVector 
)
protectedvirtual

This is called by the superclass. This is the method you should override if you use this class as ancestor. Build output polygonal data set from the shape wrapper.

Parameters
theRequest[in] information about data object. In current implementation it is ignored.
theInputVector[in] the input data. As adata source is the start stage of the VTK pipeline, theInputVector is empty and not used (no input port).
theOutputVector[in] the pointer to output data, that is filled in this method.
void IVtkTools_ShapeDataSource::SetShape ( const IVtkOCC_Shape::Handle theOccShape)

Set the source OCCT shape.

Parameters
theOccShape[in] OCCT shape wrapper.
vtkSmartPointer<vtkIdTypeArray> IVtkTools_ShapeDataSource::SubShapeIDs ( )

Access to the shape's sub-shape ids array.

Returns
the array cast to vtkIdTypeArray
vtkSmartPointer<vtkPolyData> IVtkTools_ShapeDataSource::transform ( vtkPolyData *  theSource,
const gp_Trsf theTrsf 
) const
protected

Transforms the passed polygonal data by the given OCCT transformation matrix.

Parameters
theSource[in] source polygonal data to transform.
theTrsf[in] transformation to apply.
Returns
resulting polygonal data (transformed copy of source).
IVtkTools_ShapeDataSource::vtkTypeMacro ( IVtkTools_ShapeDataSource  ,
vtkPolyDataAlgorithm   
)

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