X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_ActorDef.h;h=d19a001e302e89fb299379c1f696ef53ee1cfcf4;hb=fa95110a3b64cb8323176103200e3dd17f0ed67e;hp=3b9d9c68f97a4de811e5531ed78b268ce4ddf815;hpb=985eaf19254291678afe1040ec41fbf1fa8f5d4d;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_ActorDef.h b/src/OBJECT/SMESH_ActorDef.h index 3b9d9c68f..d19a001e3 100644 --- a/src/OBJECT/SMESH_ActorDef.h +++ b/src/OBJECT/SMESH_ActorDef.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -83,7 +83,7 @@ class SMESH_ActorDef : public SMESH_Actor friend class SMESH_Actor; public: - vtkTypeMacro(SMESH_ActorDef,SMESH_Actor); + vtkTypeMacro(SMESH_ActorDef,SMESH_Actor) virtual void Delete(); @@ -127,11 +127,7 @@ class SMESH_ActorDef : public SMESH_Actor virtual void SetBallColor(double r,double g,double b); virtual void GetBallColor(double& r,double& g,double& b); - virtual void SetHighlightColor(double r,double g,double b); - virtual void GetHighlightColor(double& r,double& g,double& b); - - virtual void SetPreHighlightColor(double r,double g,double b); - virtual void GetPreHighlightColor(double& r,double& g,double& b); + virtual void UpdateSelectionProps(); virtual double GetLineWidth(); virtual void SetLineWidth(double theVal); @@ -148,14 +144,14 @@ class SMESH_ActorDef : public SMESH_Actor virtual void SetBallScale(double size); virtual double GetBallScale(); - virtual int GetNodeObjId(int theVtkID); - virtual double* GetNodeCoord(int theObjID); - virtual int GetNodeVtkId(int theObjID); + virtual vtkIdType GetNodeObjId(vtkIdType theVtkID); + virtual double* GetNodeCoord(vtkIdType theObjID); + virtual vtkIdType GetNodeVtkId(vtkIdType theObjID); - virtual int GetElemObjId(int theVtkID); - virtual vtkCell* GetElemCell(int theObjID); + virtual vtkIdType GetElemObjId(vtkIdType theVtkID); + virtual vtkCell* GetElemCell(vtkIdType theObjID); - virtual int GetObjDimension( const int theObjId ); + virtual int GetObjDimension( const vtkIdType theObjId ) override; virtual void SetVisibility(int theMode); void SetVisibility(int theMode, bool theIsUpdateRepersentation); @@ -209,7 +205,8 @@ class SMESH_ActorDef : public SMESH_Actor virtual bool GetFacesOrientation3DVectors(); virtual void SetControlMode(eControl theMode); - virtual int GetNumberControlEntities(); + virtual void SetControl(SMESH::Controls::FunctorPtr theFunctor); + virtual smIdType GetNumberControlEntities(); virtual eControl GetControlMode(){ return myControlMode;} virtual SMESH::Controls::FunctorPtr GetFunctor() { return myFunctor; } @@ -242,6 +239,8 @@ class SMESH_ActorDef : public SMESH_Actor virtual void SetMarkerStd( VTK::MarkerType, VTK::MarkerScale ); virtual void SetMarkerTexture( int, VTK::MarkerTexture ); + virtual void UpdateFilter(); + protected: void SetControlMode(eControl theMode, bool theCheckEntityMode); void SetImplicitFunctionUsed(bool theIsImplicitFunctionUsed);