#endif
}
-
-void SALOME_ExtractGeometry::SetImplicitBoolean(vtkImplicitBoolean* theImplicitBoolean)
+//void SALOME_ExtractGeometry::SetImplicitBoolean(vtkImplicitBoolean* theImplicitBoolean)
+void SALOME_ExtractGeometry::SetImplicitFunction(vtkImplicitFunction* theImplicitFunction)
{
- myImplicitBoolean = theImplicitBoolean;
- SetImplicitFunction(theImplicitBoolean);
+ //myImplicitBoolean = theImplicitBoolean;
+ //SetImplicitFunction(theImplicitBoolean);
+ myImplicitBoolean=dynamic_cast<vtkImplicitBoolean*>(theImplicitFunction);
+ vtkExtractGeometry::SetImplicitFunction(theImplicitFunction);
}
-
void SALOME_ExtractGeometry::SetStoreMapping(bool theStoreMapping)
{
myStoreMapping = theStoreMapping;
if(aFunction->GetNumberOfItems() == 0){
myElemVTK2ObjIds.clear();
myNodeVTK2ObjIds.clear();
-
+ printf(" * SALOME_ExtractGeometry::Execute\n");
vtkDebugMacro(<< "Extracting geometry - ShallowCopy");
GetOutput()->ShallowCopy(GetInput());
Modified();
#include <vector>
//class vtkImplicitBoolean;
+class vtkImplicitFunction;
class SALOME_ExtractGeometry : public vtkExtractGeometry
{
static SALOME_ExtractGeometry *New();
- void SetImplicitBoolean(vtkImplicitBoolean* theImplicitBoolean);
+ //void SetImplicitBoolean(vtkImplicitBoolean* theImplicitBoolean);
+ virtual void SetImplicitFunction(vtkImplicitFunction* theImplicitFunction);
+
vtkImplicitBoolean* GetImplicitBoolean() const {
return myImplicitBoolean.GetPointer();
}
#include <vtkPlane.h>
#include <vtkExtractGeometry.h>
#include <vtkImplicitBoolean.h>
+#include <vtkImplicitFunction.h>
#include <vtkImplicitFunctionCollection.h>
#include <vtkMath.h>
//myExtractGeometry->DebugOn();
vtkImplicitBoolean* anImplicitBoolean = vtkImplicitBoolean::New();
- myExtractGeometry->SetImplicitBoolean(anImplicitBoolean);
+ //myExtractGeometry->SetImplicitBoolean(anImplicitBoolean);
+ myExtractGeometry->SetImplicitFunction(anImplicitBoolean);
anImplicitBoolean->SetOperationTypeToIntersection();
anImplicitBoolean->Delete();
{
SetIDMapper(thePipeLine->GetIDMapper());
myMapper->ShallowCopy(thePipeLine->GetMapper());
- myExtractGeometry->SetImplicitBoolean(thePipeLine->myExtractGeometry->GetImplicitBoolean());
+ //myExtractGeometry->SetImplicitBoolean(thePipeLine->myExtractGeometry->GetImplicitBoolean());
+ myExtractGeometry->SetImplicitFunction(thePipeLine->myExtractGeometry->GetImplicitBoolean());
Build();
}
void VISU_PipeLine::SameAs(VISU_PipeLine *thePipeLine){
ShallowCopy(thePipeLine);
- myExtractGeometry->SetImplicitBoolean(vtkImplicitBoolean::New());
+ //myExtractGeometry->SetImplicitBoolean(vtkImplicitBoolean::New());
+ myExtractGeometry->SetImplicitFunction(vtkImplicitBoolean::New());
myExtractGeometry->GetImplicitBoolean()->Delete();
}
{
return myIDMapper;
}
+//=======================================================================
+void VISU_PipeLine::SetImplicitFunction(vtkImplicitFunction *theFunction)
+{
+ myExtractGeometry->SetImplicitFunction(theFunction);
+}
+//=======================================================================
+vtkImplicitFunction * VISU_PipeLine::GetImplicitFunction()
+{
+ return myExtractGeometry->GetImplicitFunction();
+}
+//=======================================================================
+void VISU_PipeLine::SetExtractInside(int theFlag)
+{
+ myExtractGeometry->SetExtractInside(theFlag);
+}
#include "VISU_IDMapper.hxx"
class vtkCell;
+class vtkImplicitFunction;
template <class T>
class TVTKSmartPtr: public vtkSmartPointer<T>
const VISU::PIDMapper&
GetIDMapper()const;
+ void SetImplicitFunction(vtkImplicitFunction *theFunction);
+ vtkImplicitFunction* GetImplicitFunction();
+ void SetExtractInside (int);
+
protected:
VISU_PipeLine();
VISU_PipeLine(const VISU_PipeLine&);