Version: 9.16.0
SMESH_SVTKActor.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// SMESH OBJECT : interactive object for SMESH visualization
24// File : SMESH_SVTKActor.h
25// Author : Roman NIKOLAEV
26// Module : SMESH
27//
28#ifndef SMESH_SVTKACTOR_H
29#define SMESH_SVTKACTOR_H
30
31#include "SMESH_Object.h"
32#include <SVTK_Actor.h>
33
34
35class SVTK_Actor;
36class vtkUnstructureGrid;
37class vtkDataSetMapper;
38
40
41public:
43
45
46 void SetBallScale(double theSize);
47 void SetBallSize(float theSize);
48 void Set0DSize(float theSize);
49
51 virtual
52 void
53 AddToRender(vtkRenderer* theRendere);
54
55 virtual void SetVisibility( int theVisibility );
56
58 virtual void
59 Initialize();
60
62 virtual void
63 MapCells(SALOME_Actor* theMapActor,
64 const SVTK_TIndexedMapOfVtkId& theMapIndex);
65
66
68 virtual
69 void
70 RemoveFromRender(vtkRenderer* theRendere);
71
72 void SetVisualObject(TVisualObjPtr theVisualObj);
73
74 protected:
75 SVTK_DeviceActor* my0DActor;
76 SVTK_DeviceActor* myBallActor;
77
81
83 virtual ~SMESH_SVTKActor();
84};
85
86#endif
boost::shared_ptr< SMESH_VisualObj > TVisualObjPtr
Definition: SMESH_Object.h:88
#define SMESHOBJECT_EXPORT
Definition: SMESH_Object.h:38
Definition: SMESH_SVTKActor.h:39
SVTK_DeviceActor * myBallActor
Definition: SMESH_SVTKActor.h:76
vtkUnstructuredGrid * my0DGrid
Definition: SMESH_SVTKActor.h:78
static SMESH_SVTKActor * New()
vtkTypeMacro(SMESH_SVTKActor, SVTK_Actor) void SetBallScale(double theSize)
vtkUnstructuredGrid * myBallGrid
Definition: SMESH_SVTKActor.h:79
SVTK_DeviceActor * my0DActor
Definition: SMESH_SVTKActor.h:75
TVisualObjPtr myVisualObj
Definition: SMESH_SVTKActor.h:80