VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtElementAttributes.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  ******************************************************************************/
00005 /******************************************************************************
00006  * $RCSfile: DtElementAttributes.h,v $ $Revision: 1.2 $ $State: Exp $
00007  ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvCore/vrvCore.h>
00016 #include <vrvCore/DtUniqueElementAttribute.h>
00017 
00018 #include <string>
00019 
00020 namespace makVrv
00021 {
00022 
00023    struct DtElementAttributes
00024    {
00025       enum AttributeIds
00026       {
00027          DisplayName = 1,
00028          ObjectVisibility,
00029          IndicatorVisibility,
00030          HeightAboveTerrainLinesEnabled,
00031          IndicatorsOnSelect,
00032          ElementIDHierarchyStateAttribute,
00033          ElementIDHierarchyDisplayStateAttribute,
00034          ElementOverlayName,
00035          ElementKindAndCategory,
00036          LocalScaleEnabled,
00037          LocalScaleAmount,
00038          ElementDamageState,
00039 
00040          UserStart = 1000
00041       };
00042    };
00043 
00044    //Typdefs for various attributes.
00045    typedef DtUniqueElementAttribute<std::string,DtElementAttributes::DisplayName> 
00046       DtElementAttributeDisplayName;
00047 
00048    typedef DtUniqueElementAttribute<std::string,DtElementAttributes::ElementOverlayName> 
00049       DtElementAttributeOverlayName;
00050 
00051    typedef DtUniqueElementAttribute<std::pair<int, int>, DtElementAttributes::ElementKindAndCategory>
00052       DtElementAttributeKindAndCategory;
00053 
00054    typedef DtUniqueElementAttribute<bool,DtElementAttributes::ObjectVisibility> 
00055       DtElementAttributeVisibility;
00056 
00057    typedef DtUniqueElementAttribute<bool,DtElementAttributes::IndicatorVisibility> 
00058       DtElementAttributeIndicatorsVisibility;
00059 
00060    typedef DtUniqueElementAttribute<bool,DtElementAttributes::HeightAboveTerrainLinesEnabled> 
00061       DtElementAttributeTerrainLinesEnabled;
00062 
00063    typedef DtUniqueElementAttribute<bool, DtElementAttributes::IndicatorsOnSelect>
00064       DtElementAttributeIndicatorsOnSelect;
00065 
00066    typedef DtUniqueElementAttribute<bool, DtElementAttributes::LocalScaleEnabled>
00067       DtElementAttributeLocalScaleEnabled;
00068 
00069    typedef DtUniqueElementAttribute<float, DtElementAttributes::LocalScaleAmount>
00070       DtElementAttributeLocalScaleAmount;
00071 
00072    typedef DtUniqueElementAttribute<unsigned int, DtElementAttributes::ElementDamageState>
00073       DtElementAttributeDamageState;
00074 
00075 #ifndef _WIN32
00076    template class DtUniqueElementAttribute<std::string,DtElementAttributes::DisplayName>;
00077    template class DtUniqueElementAttribute<std::string,DtElementAttributes::ElementOverlayName>;
00078    template class DtUniqueElementAttribute<bool,DtElementAttributes::ObjectVisibility>;
00079    template class DtUniqueElementAttribute<bool,DtElementAttributes::IndicatorVisibility>;
00080    template class DtUniqueElementAttribute<bool,DtElementAttributes::HeightAboveTerrainLinesEnabled>;
00081    template class DtUniqueElementAttribute<bool,DtElementAttributes::IndicatorsOnSelect>;
00082    template class DtUniqueElementAttribute<bool,DtElementAttributes::LocalScaleEnabled>;
00083    template class DtUniqueElementAttribute<float,DtElementAttributes::LocalScaleAmount>;
00084 #endif
00085 }
00086 

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)