Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/Graphic3d_TransModeFlags.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 2004-10-29
0002 // Created by: Alexander BORODIN
0003 // Copyright (c) 2004-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef Graphic3d_TransModeFlags_HeaderFile
0017 #define Graphic3d_TransModeFlags_HeaderFile
0018 
0019 //! Transform Persistence Mode defining whether to lock in object position, rotation and / or
0020 //! zooming relative to camera position.
0021 enum Graphic3d_TransModeFlags
0022 {
0023   Graphic3d_TMF_None         = 0x0000, //!< no persistence attributes (normal 3D object)
0024   Graphic3d_TMF_ZoomPers     = 0x0002, //!< object does not resize
0025   Graphic3d_TMF_RotatePers   = 0x0008, //!< object does not rotate;
0026   Graphic3d_TMF_TriedronPers = 0x0020, //!< object behaves like trihedron - it is fixed at the
0027                                        //!< corner of view and does not resizing (but rotating)
0028   Graphic3d_TMF_2d = 0x0040, //!< object is defined in 2D screen coordinates (pixels) and does not
0029                              //!< resize, pan and rotate
0030   Graphic3d_TMF_CameraPers = 0x0080, //!< object is in front of the camera
0031   Graphic3d_TMF_OrthoPers =
0032     0x0100, //!< object is forced to be rendered with orthographic projection.
0033   Graphic3d_TMF_AxialScalePers = 0x0200, //!< object does not resize with axial scale
0034   Graphic3d_TMF_ZoomRotatePers =
0035     Graphic3d_TMF_ZoomPers | Graphic3d_TMF_RotatePers, //!< object doesn't resize and rotate
0036   Graphic3d_TMF_AxialZoomPers =
0037     Graphic3d_TMF_ZoomPers | Graphic3d_TMF_AxialScalePers //!< object does not visually resize with
0038                                                           //!< either object or axial scale
0039 };
0040 
0041 //! Bitwise OR operator for transform persistence mode flags. Be aware that some flags combinations
0042 //! are not valid.
0043 inline Graphic3d_TransModeFlags operator|(Graphic3d_TransModeFlags a, Graphic3d_TransModeFlags b)
0044 {
0045   return static_cast<Graphic3d_TransModeFlags>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b));
0046 }
0047 
0048 #endif