0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / Graphic3d / Graphic3d_TransModeFlags.hxx
1 // Created on: 2004-10-29
2 // Created by: Alexander BORODIN
3 // Copyright (c) 2004-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef Graphic3d_TRANS_MODE_FLAGS_HXX
17 #define Graphic3d_TRANS_MODE_FLAGS_HXX
18
19 //! Transform Persistence Mode defining whether to lock in object position, rotation and / or zooming relative to camera position.
20 enum Graphic3d_TransModeFlags
21 {
22   Graphic3d_TMF_None           = 0x0000,                  //!< no persistence attributes (normal 3D object)
23   Graphic3d_TMF_ZoomPers       = 0x0002,                  //!< object does not resize
24   Graphic3d_TMF_RotatePers     = 0x0008,                  //!< object does not rotate;
25   Graphic3d_TMF_TriedronPers   = 0x0020,                  //!< object behaves like trihedron - it is fixed at the corner of view and does not resizing (but rotating)
26   Graphic3d_TMF_2d             = 0x0040,                  //!< object is defined in 2D screen coordinates (pixels) and does not resize, pan and rotate
27   Graphic3d_TMF_ZoomRotatePers = Graphic3d_TMF_ZoomPers
28                                | Graphic3d_TMF_RotatePers //!< object doesn't resize and rotate
29 };
30
31 #endif