1 // File : GEOM_AssemblyBuilder.h
2 // Created : Wed Feb 20 17:24:59 2002
3 // Author : Christophe ATTANASIO
6 // Copyright : Open CASCADE 2002
10 #include <vtkAssembly.h>
11 #include <vtkPropAssembly.h>
12 #include <vtkActorCollection.h>
14 // Open CASCADE Inlcudes
16 #include <TopoDS_Shape.hxx>
18 class GEOM_AssemblyBuilder {
22 static void InitProperties(vtkProperty* IsoProp,
23 vtkProperty* FaceProp,
24 vtkProperty* EdgeFProp,
25 vtkProperty* EdgeSProp,
26 vtkProperty* EdgeIProp,
27 vtkProperty* VertexProp,
28 vtkProperty* IsoPVProp,
29 vtkProperty* EdgePVProp,
30 vtkProperty* VertePVProp);
32 static void MeshShape(const TopoDS_Shape myShape,
33 Standard_Real deflection,
34 Standard_Boolean forced);
40 //------------------------------------------------------------------
41 // WARNING! Poor graphic performance :-( use BuildActors instead
42 //------------------------------------------------------------------
44 static vtkAssembly* BuildAssembly(const TopoDS_Shape& myShape,
45 Standard_Real deflection,
46 Standard_Integer amode,
47 Standard_Boolean forced);
49 //------------------------------------------------------------------
51 //------------------------------------------------------------------
53 static vtkActorCollection* BuildActors(const TopoDS_Shape& myShape,
54 Standard_Real deflection,
55 Standard_Integer amode,
56 Standard_Boolean forced);
59 //------------------------------------------------------------------
60 // Change mode - Not implemented !!
61 //------------------------------------------------------------------
63 static void SwitchDisplayMode(vtkAssembly* mySALOMEAssembly);
64 static void SwitchDisplayMode(vtkActorCollection* mySALOMEActors);
66 //------------------------------------------------------------------
67 // Erase/Display - Not implemented !!
68 //------------------------------------------------------------------
70 static void DisplayErase(vtkAssembly* mySALOMEAssembly);
71 static void DisplayErase(vtkActorCollection* mySALOMEActors);