1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef VTKVIEWER_MARKERDEF_H
21 #define VTKVIEWER_MARKERDEF_H
29 //! Type of standard marker for advanced rendering of vtk points
30 typedef int MarkerType;
31 const MarkerType MT_NONE = 0;
32 const MarkerType MT_POINT = 1;
33 const MarkerType MT_PLUS = 2;
34 const MarkerType MT_STAR = 3;
35 const MarkerType MT_O = 4;
36 const MarkerType MT_X = 5;
37 const MarkerType MT_O_POINT = 6;
38 const MarkerType MT_O_PLUS = 7;
39 const MarkerType MT_O_STAR = 8;
40 const MarkerType MT_O_X = 9;
41 const MarkerType MT_USER = 10;
43 //! Scale of standard marker for advanced rendering of vtk points
44 typedef int MarkerScale;
45 const MarkerScale MS_NONE = 0;
46 const MarkerScale MS_10 = 1;
47 const MarkerScale MS_15 = 2;
48 const MarkerScale MS_20 = 3;
49 const MarkerScale MS_25 = 4;
50 const MarkerScale MS_30 = 5;
51 const MarkerScale MS_35 = 6;
52 const MarkerScale MS_40 = 7;
53 const MarkerScale MS_45 = 8;
54 const MarkerScale MS_50 = 9;
55 const MarkerScale MS_55 = 10;
56 const MarkerScale MS_60 = 11;
57 const MarkerScale MS_65 = 12;
58 const MarkerScale MS_70 = 13;
60 typedef std::list<unsigned short> MarkerTexture;
61 typedef std::pair<std::string, MarkerTexture> MarkerData;
62 typedef std::map<int, MarkerData> MarkerMap;