X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_DeviceActor.h;fp=src%2FOBJECT%2FSMESH_DeviceActor.h;h=8c5b108809623bdeb6351e6e5a76ee5230712289;hb=ba76cf6d9630185552eed5c251b05e887c28379b;hp=88da39f94b4a9ab9ce5ee42b917ea98df39457f3;hpb=a1119a1c80593e7be479943fed1b638b580abaa4;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_DeviceActor.h b/src/OBJECT/SMESH_DeviceActor.h index 88da39f94..8c5b10880 100644 --- a/src/OBJECT/SMESH_DeviceActor.h +++ b/src/OBJECT/SMESH_DeviceActor.h @@ -66,7 +66,7 @@ class SMESH_DeviceActor: public vtkLODActor{ void SetStoreIDMapping(bool theStoreMapping); virtual int GetNodeObjId(int theVtkID); - virtual float* GetNodeCoord(int theObjID); + virtual vtkFloatingPointType* GetNodeCoord(int theObjID); virtual int GetElemObjId(int theVtkID); virtual vtkCell* GetElemCell(int theObjID); @@ -74,8 +74,8 @@ class SMESH_DeviceActor: public vtkLODActor{ virtual void SetTransform(VTKViewer_Transform* theTransform); virtual unsigned long int GetMTime(); - float GetShrinkFactor(); - void SetShrinkFactor(float value); + vtkFloatingPointType GetShrinkFactor(); + void SetShrinkFactor(vtkFloatingPointType value); bool IsShrunkable() { return myIsShrinkable;} bool IsShrunk() { return myIsShrunk;} @@ -135,11 +135,17 @@ class SMESH_DeviceActor: public vtkLODActor{ bool myIsHighlited; - float myPolygonOffsetFactor; - float myPolygonOffsetUnits; + vtkFloatingPointType myPolygonOffsetFactor; + vtkFloatingPointType myPolygonOffsetUnits; - void SetPolygonOffsetParameters(float factor, float units); - void GetPolygonOffsetParameters(float& factor, float& units){ + void + SetPolygonOffsetParameters(vtkFloatingPointType factor, + vtkFloatingPointType units); + + void + GetPolygonOffsetParameters(vtkFloatingPointType& factor, + vtkFloatingPointType& units) + { factor = myPolygonOffsetFactor; units = myPolygonOffsetUnits; }