VR-Forces 4.0.4 Class Documentation
include/makArchives/DtAggregateSettingsRecord.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <makArchives/makArchives.h>
00013 
00014 namespace makArchives
00015 {
00016 
00019    class DT_DLL_MAKARCHIVES DtAggregateSettingsRecord
00020    {
00021    public:
00022 
00023       enum DisplayFlags
00024       {
00025          DisplayBoundingBoxes = 0x00000001,  
00026          DisplayBoundingBoxesForSelected = 0x00000002,  
00027          GhostEchelonLevelItems = 0x00000004,
00028          InitiallyDisplayExpanded = 0x00000008,
00029          DisplayMainIcon = 0x00000010,
00030          DisplayLeafLevelItems = 0x00000020,
00031          AllowSelectingOfGhostedItems = 0x00000040,
00032          DisplayAggregates = 0x00000080
00033       };
00034 
00035    public:
00036 
00038       DtAggregateSettingsRecord();
00039 
00041       DtAggregateSettingsRecord( const DtAggregateSettingsRecord& copy );
00042 
00044       ~DtAggregateSettingsRecord();
00045 
00047       DtAggregateSettingsRecord& operator = ( const DtAggregateSettingsRecord& obj );
00048 
00049       bool operator == ( const DtAggregateSettingsRecord& rhs ) const;
00050       inline bool operator != ( const DtAggregateSettingsRecord& rhs ) const
00051       {
00052          return !( *this == rhs );
00053       }
00054 
00057 
00058       double ghostingTransparency() const;
00059       void setGhostingTransparency( double transparency );
00060 
00061       bool ghostEchelonLevelItems() const;
00062       void setGhostEchelonLevelItems( bool enabled );
00063 
00064       int echelonLevel() const;
00065       void setEchelonLevel( int level );
00066 
00067       bool displayAggregates() const;
00068       void setDisplayAggregates( bool enabled );
00069 
00070       bool displayBoundingBoxes() const;
00071       void setDisplayBoundingBoxes( bool enabled );
00072 
00073       bool displayLeafNodes() const;
00074       void setDisplayLeafNodes( bool enabled );
00075 
00076       bool displayBoundingBoxesForSelected() const;
00077       void setDisplayBoundingBoxesForSelected( bool enabled );
00078 
00079       bool initiallyDisplayExpanded() const;
00080       void setInitiallyDisplayExpanded( bool enabled );
00081 
00082       bool allowSelectingOfGhostedItems() const;
00083       void setAllowSelectingOfGhostedItems( bool enabled );
00084 
00085       bool displayMainIcon() const;
00086       void setDisplayMainIcon( bool enabled );
00087 
00088       unsigned char colorizedModelColorType() const;
00089       void setColorizedModelColorType( unsigned char colorMode );
00090 
00092       inline void setFlags( int f )
00093       {
00094          myFlags = f;
00095       }
00096 
00098       inline int flags() const
00099       {
00100          return myFlags;
00101       }
00102 
00104 
00105    protected:
00106 
00107       friend class boost::serialization::access;
00108 
00112       template<class Archive>
00113          void serialize(Archive & ar, const unsigned int version)
00114       {
00115          ar & BOOST_SERIALIZATION_NVP(myFlags);
00116          ar & BOOST_SERIALIZATION_NVP(myEchelonLevel);
00117          ar & BOOST_SERIALIZATION_NVP(myGhostingTransparency);
00118          ar & BOOST_SERIALIZATION_NVP(myColorizedModelColorType);
00119       }
00120 
00121    protected:
00122 
00123       int myFlags;
00124       int myEchelonLevel;
00125       double myGhostingTransparency;
00126       unsigned char myColorizedModelColorType;
00127 
00128    };
00129 
00130 }
00131 
00132 BOOST_CLASS_VERSION( makArchives::DtAggregateSettingsRecord, 1 )

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)