![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtEntityMass.h,v $ $Revision: 97901 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00009 //\file DtEntityMass.h 00010 //\brief Contains makVrf::DtEntityMass class. 00011 //\ingroup addAttrGui 00012 00013 #pragma once 00014 00015 #include <vrfGuiObjectInformationQt/DtEntityInformationPageItems.h> 00016 #include <vrfGuiCore/DtVrfVrlinkDataInterface.h> 00017 00018 //Using the generic page item class, create a subclass to show the mass. This implementation 00019 //will need to do a little more work than the base class in that the mass is stored in a 00020 //different structure than the base entity state information. See DtEntityMass.cxx for more information 00021 class DtEntityMass : public makVrf::makVrfGuiObjectInformationQt::DtEntityStatePageItem 00022 { 00023 public: 00024 DtEntityMass() 00025 : DtEntityStatePageItem() 00026 { 00027 } 00028 00029 DtEntityMass(makVrf::makVrfGuiObjectInformationQt::DtInformationDialogPageLogic* l) 00030 : DtEntityStatePageItem(l) 00031 { 00032 } 00033 00034 virtual ~DtEntityMass(); 00035 00036 static std::string creatorName(); 00037 00038 protected: 00039 //Called when the information dialog wants to show a value. Override to return the value of this information item 00040 virtual QString value(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*); 00041 00042 //Called when the information dialog wants to show the items title (column 0). 00043 virtual QString title(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*); 00044 00045 protected: 00046 makVrf::DtVrfVrlinkDataInterfacePtr myAdditionalState; 00047 }; 00048 00049 //Creator used by information dialog manager to create information item. 00050 typedef makVrf::makVrfGuiObjectInformationQt::DtItemUpdateFunctionCreator<DtEntityMass> DtEntityMassCreator;