vtkStandardNewMacro(VTKViewer_AppendFilter);
VTKViewer_AppendFilter::VTKViewer_AppendFilter()
-{}
-
+{
+ myDoMappingFlag=true;
+}
VTKViewer_AppendFilter::~VTKViewer_AppendFilter()
{}
+void VTKViewer_AppendFilter::SetDoMappingFlag(const bool theFlag)
+{
+ myDoMappingFlag=theFlag;
+}
+
+bool VTKViewer_AppendFilter::DoMappingFlag() const
+{
+ return myDoMappingFlag;
+}
void VTKViewer_AppendFilter::Execute()
{
vtkAppendFilter::Execute();
- DoMapping();
+ if (myDoMappingFlag){
+ DoMapping();
+ }
}
void VTKViewer_AppendFilter::Reset()
*/
vtkTypeRevisionMacro(VTKViewer_AppendFilter, vtkAppendFilter);
+ void SetDoMappingFlag(const bool theFlag);
+
+ bool DoMappingFlag() const;
+
int GetElemObjId(int theVtkI,
int& theInputIndex);
typedef std::vector<int> VectorInt;
private:
+ bool myDoMappingFlag;
TVectorId myNodeIds;
TVectorId myCellIds;
VectorInt myNodeRanges;
VectorInt myCellRanges;
+
};
#endif