Salome HOME
Fixed method GetSame for the case of two cylindrical surfaces that are part of the...
[modules/geom.git] / src / OBJECT / GEOM_Actor.h
index 7229b9e2b934989d7f826dbfe2424f6cb39fbdca..25c713d1090979c3aeebad034ee252be90b1a6fd 100644 (file)
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
@@ -62,11 +62,14 @@ class SALOME_WNT_EXPORT GEOM_Actor : public SALOME_Actor {
   void ReleaseGraphicsResources(vtkWindow *);
 
   const TopoDS_Shape& getTopo();
-  void setInputShape(const TopoDS_Shape& ashape,double adef1,int imode);
+  void setInputShape(const TopoDS_Shape& ashape, double adef1,
+                    int imode, bool isVector = false);
 
   double getDeflection();
   void setDeflection(double adefl);
 
+  double isVector() { return myIsVector; }
+
   // SubShape
   void SubShapeOn();
   void SubShapeOff();
@@ -86,12 +89,12 @@ class SALOME_WNT_EXPORT GEOM_Actor : public SALOME_Actor {
   void SetShadingProperty(vtkProperty* Prop);
 
   // Opacity
-  void SetOpacity(float opa);
-  float GetOpacity();
+  void SetOpacity(vtkFloatingPointType opa);
+  vtkFloatingPointType GetOpacity();
 
   // Color
-  void SetColor(float r,float g,float b);
-  void GetColor(float& r,float& g,float& b);
+  void SetColor(vtkFloatingPointType r,vtkFloatingPointType g,vtkFloatingPointType b);
+  void GetColor(vtkFloatingPointType& r,vtkFloatingPointType& g,vtkFloatingPointType& b);
 
   virtual bool IsInfinite() {return myIsInfinite;}  
  protected:
@@ -114,6 +117,7 @@ class SALOME_WNT_EXPORT GEOM_Actor : public SALOME_Actor {
 
   TopoDS_Shape myShape;
   double deflection;
+  bool myIsVector;
 
   vtkMapper* ShadingMapper;
   vtkMapper* WireframeMapper;