![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtElementAttributeUtilityFunctions.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00011 00014 00015 #pragma once 00016 00017 #include <vrfGuiCore/vrfGuiCore.h> 00018 #include <vrvCore/DtUniqueID.h> 00019 #include <vrvCore/DtElementIDHierarchyState.h> 00020 #include <vrfGuiCore/DtEmbarkationHierarchyAttributes.h> 00021 #include <vrvCore/DtElementAttributes.h> 00022 00023 namespace makVrv 00024 { 00025 class DtDe; 00026 } 00027 00028 namespace makVrf 00029 { 00031 const makVrv::DtElementAttributes::AttributeIds AttributeShowWithContext = 00032 (makVrv::DtElementAttributes::AttributeIds)(makVrv::DtElementAttributes::UserStart - 10); 00033 const makVrv::DtElementAttributes::AttributeIds AttributeHideWithContext = 00034 (makVrv::DtElementAttributes::AttributeIds)(makVrv::DtElementAttributes::UserStart - 9); 00035 00036 typedef makVrv::DtUniqueElementAttribute<unsigned int, AttributeShowWithContext> 00037 DtElementAttributeShowWithContext; 00038 00039 typedef makVrv::DtUniqueElementAttribute<unsigned int, AttributeHideWithContext> 00040 DtElementAttributeHideWithContext; 00041 00042 class DT_DLL_VRFGUICORE DtElementAttributeUtilityFunctions 00043 { 00044 public: 00045 static const makVrv::DtElementIDHierarchyStateAttribute* echelonHierarchyState(makVrv::DtDe& de, makVrv::DtElementID id); 00046 static const makVrv::DtElementIDHierarchyDisplayStateAttribute* displayState(makVrv::DtDe& de, makVrv::DtElementID id); 00047 00049 static bool isEchelonChild(makVrv::DtDe& de, makVrv::DtElementID parent, makVrv::DtElementID child, bool recurse = false); 00050 00051 static const DtEmbarkationHierarchyStateAttribute* embarkationHierarchyState(makVrv::DtDe& de, makVrv::DtElementID id); 00052 00054 static bool isEmbarkationChild(makVrv::DtDe& de, makVrv::DtElementID parent, makVrv::DtElementID child, bool recurse = false); 00055 }; 00056 }