| 
    Open CASCADE Technology 7.8.2.dev
    
   | 
 
VTK data source for OCC shapes polygonal data. More...
#include <IVtkTools_ShapeDataSource.hxx>

Public Member Functions | |
| vtkTypeMacro (IVtkTools_ShapeDataSource, vtkPolyDataAlgorithm) static IVtkTools_ShapeDataSource *New() | |
Initialization  | |
| void | SetShape (const IVtkOCC_Shape::Handle &theOccShape) | 
| Set the source OCCT shape.   | |
| const IVtkOCC_Shape::Handle & | GetShape () | 
| Get the source OCCT shape.   | |
| void | FastTransformModeOn () | 
| Set the source OCCT shape.   | |
| void | FastTransformModeOff () | 
| Set the source OCCT shape.   | |
Data accessors  | |
| IVtk_IdType | GetId () const | 
| Returns ID of the shape used as a topological input for this data source.   | |
| Standard_Boolean | Contains (const IVtkOCC_Shape::Handle &theOccShape) const | 
| Checks if the internal OccShape pointer is the same the argument.   | |
| vtkSmartPointer< vtkIdTypeArray > | SubShapeIDs () | 
| Access to the shape's sub-shape ids array.   | |
Protected Member Functions | |
Interface to override  | |
| virtual int | RequestData (vtkInformation *theRequest, vtkInformationVector **theInputVector, vtkInformationVector *theOutputVector) override | 
| 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.   | |
Internals | |
| IVtkOCC_Shape::Handle | myOccShape | 
| Shape wrapper used as an input.   | |
| IVtkVTK_ShapeData::Handle | myPolyData | 
| Polygonal representation of shape.   | |
| Standard_Boolean | myIsFastTransformMode | 
| Indicates whether light-weighted processing for transformed shapes is enabled. If so, data source does not re-compute the discrete model for the input topological shape. It rather uses the already existing one and applies the necessary transformation to it.   | |
| Standard_Boolean | myIsTransformOnly | 
| Internal flag indicating that the current working shape is just a transformed copy of the previously processed one. This flag is used in a couple with "fast transformation" mode flag.   | |
| vtkSmartPointer< vtkPolyData > | transform (vtkPolyData *theSource, const gp_Trsf &theTrsf) const | 
| Transforms the passed polygonal data by the given OCCT transformation matrix.   | |
| IVtkTools_ShapeDataSource () | |
| Shape wrapper used as an input.   | |
| virtual | ~IVtkTools_ShapeDataSource () | 
| Shape wrapper used as an input.   | |
VTK data source for OCC shapes polygonal data.
      
  | 
  protected | 
Shape wrapper used as an input.
      
  | 
  protectedvirtual | 
Shape wrapper used as an input.
| Standard_Boolean IVtkTools_ShapeDataSource::Contains | ( | const IVtkOCC_Shape::Handle & | theOccShape | ) | const | 
Checks if the internal OccShape pointer is the same the argument.
| [in] | shape | OccShape pointer to be checked. | 
      
  | 
  inline | 
Set the source OCCT shape.
| theOccShape | [in] OCCT shape wrapper. | 
      
  | 
  inline | 
Set the source OCCT shape.
| 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.
      
  | 
  inline | 
Get the source OCCT shape.
      
  | 
  overrideprotectedvirtual | 
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.
| 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.
| theOccShape | [in] OCCT shape wrapper. | 
| vtkSmartPointer< vtkIdTypeArray > IVtkTools_ShapeDataSource::SubShapeIDs | ( | ) | 
Access to the shape's sub-shape ids array.
      
  | 
  protected | 
Transforms the passed polygonal data by the given OCCT transformation matrix.
| theSource | [in] source polygonal data to transform. | 
| theTrsf | [in] transformation to apply. | 
| IVtkTools_ShapeDataSource::vtkTypeMacro | ( | IVtkTools_ShapeDataSource | , | 
| vtkPolyDataAlgorithm | |||
| ) | 
      
  | 
  protected | 
Indicates whether light-weighted processing for transformed shapes is enabled. If so, data source does not re-compute the discrete model for the input topological shape. It rather uses the already existing one and applies the necessary transformation to it.
      
  | 
  protected | 
Internal flag indicating that the current working shape is just a transformed copy of the previously processed one. This flag is used in a couple with "fast transformation" mode flag.
      
  | 
  protected | 
Shape wrapper used as an input.
      
  | 
  protected | 
Polygonal representation of shape.