VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtAggregateElement Class Reference

A single Aggregate element. More...

Inheritance diagram for makVrv::DtAggregateElement:
Inheritance graph
[legend]

Public Types

typedef boost::unordered_map
< int,
DtAggregateVisualizerSet * > 
ModelSetMap
 

Public Member Functions

 DtAggregateElement (DtBaseConnection &conn, DtAggregateStateListener &listener)
 CTOR. More...
 
virtual ~DtAggregateElement ()
 DTOR. More...
 
 DtAggregateElement (const DtAggregateElement &)=delete
 not allowed More...
 
DtAggregateElementoperator= (const DtAggregateElement &)=delete
 not allowed More...
 
virtual void setVisible (bool visible)
 Set the Aggregate element to be visible. More...
 
virtual void setInvisible (bool)
 Sets whether or not this item is invisible. More...
 
virtual bool invisible () const
 
DtAggregateStateListenerlistener ()
 Get the listener for the Aggregate this visualizer is visualizing. More...
 
virtual void slot_subordinatesChanged ()
 
const ModelSetMapmodelSetMap () const
 Get the current model set map. More...
 
template<typename VisualizerClass >
void findVisualizers (std::vector< VisualizerClass * > &visualizers)
 
virtual DtElementEntry::ObjectType elementType () const
 Virtual function for getting the element type. More...
 
- Public Member Functions inherited from makVrv::DtElement
 DtElement (DtBaseConnection &conn, DtElementID elementId)
 Construct an element with the base connection and the element id. More...
 
virtual ~DtElement ()
 DTOR. More...
 
 DtElement ()=delete
 not allowed - default constructor More...
 
 DtElement (const DtElement &)=delete
 not allowed - copy constructor More...
 
DtElementoperator= (const DtElement &)=delete
 not allowed - equals operator More...
 
virtual void visualize (const DtSharedModelSetSettings::ModelSetVisualizedMap &sets)
 Visualize the element. More...
 
virtual bool visible () const
 Get whether the element is visible. More...
 
DtElementID elementID () const
 Get the element ID of the element. More...
 
virtual const DtUnicodedefinition () const
 Accessor to get the visual definition. More...
 
virtual void changeElementAttribute (const DtElementAttribute *attr)
 Request a change to the value of one of this element's attributes. More...
 

Public Attributes

boost::signalslib::signal
< void(DtAggregateElement *)> 
signal_subordinatesChanged
 

Protected Member Functions

void damageSet (DtEntityStateListener::DamageState damage)
 Update echelon hierarchy with destroyed state of this item. More...
 
virtual void updateVisibilityStates ()
 Goes through model set map and updates visibility state for each visualizer. More...
 
virtual void updateVisibilityState (DtAggregateVisualizerSet *)
 Updates visibility state for individual visualizer set given model set of the visualizer set and other information. More...
 
- Protected Member Functions inherited from makVrv::DtElement
virtual void updateConnectionObjectType (const std::string &type)
 Called by derived types Calls reportConnectionObjectType. More...
 
virtual void setElementSubtype (DtElementAttributes::ElementSubtypes subtype)
 Set the member variable myElementSubtype. More...
 
void slot_updateOverlayNameRaw (const char *text)
 Called when overlay name for the element has been changed - passed as raw. More...
 
void slot_updateConnectionObjectID (const std::string &id)
 Called when the entity identifier is discovered. More...
 
void slot_updateDisplayName (const std::string &text)
 Called when display name for the element has been changed. More...
 
void slot_updateOverlayName (const std::string &pname)
 Called when overlay name for the element has been changed. More...
 
void slot_updateDamageState (DtEntityStateListener::DamageState state)
 Called when damage state for the element has been changed. More...
 
virtual void getDefinitions (std::vector< DtUnicode > &definitions)=0
 
virtual void setModelSetEnabled (int modelSet, bool enabled)=0
 
virtual void reportElementCreated ()
 Reporting Methods. More...
 
virtual void reportDisplayName ()
 Report that an element display name has changed. More...
 
virtual void reportConnectionObjectID ()
 Report an element's ID. More...
 
virtual void reportConnectionObjectType ()
 Report an element's type. More...
 
virtual void reportOverlayNameChanged ()
 Report that an element parent overlay name has changed. More...
 
virtual void reportVisibility ()
 Report that an element visibility has changed. More...
 
virtual void reportDamageStateChanged ()
 Report that an element damage state has changed. More...
 
virtual void reportDriverType ()=0
 Report that the element comes from a VR-Link connection. More...
 
virtual void reportElementSubtype ()
 Report the element's subtype. More...
 
virtual void reportElementDefinitionName ()
 Report the element's element definition. More...
 

Protected Attributes

ModelSetMap myAggregateModelSetMap
 
DtAggregateStateListenermyListener
 
DtSignalConnectionManager myConnections
 
bool myInvisible
 
- Protected Attributes inherited from makVrv::DtElement
DtBaseConnectionmyBaseConnection
 
DtElementID myElementId
 
DtUnicode myElementDefinition
 
std::string myConnectionObjectID
 
std::string myConnectionObjectType
 
std::string myDisplayName
 
std::string myElementOverlayName
 
DtElementAttributes::ElementSubtypes myElementSubtype
 
DtEntityStateListener::DamageState myDamageState
 
bool myElementVisible
 
bool myElementReported
 

Detailed Description

A single Aggregate element.

An Aggregate element may be visualized using multiple visualizer sets one per model set.

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtAggregateElement::DtAggregateElement ( DtBaseConnection conn,
DtAggregateStateListener listener 
)

CTOR.

virtual makVrv::DtAggregateElement::~DtAggregateElement ( )
virtual

DTOR.

makVrv::DtAggregateElement::DtAggregateElement ( const DtAggregateElement )
delete

not allowed

Member Function Documentation

DtAggregateElement& makVrv::DtAggregateElement::operator= ( const DtAggregateElement )
delete

not allowed

virtual void makVrv::DtAggregateElement::setVisible ( bool  visible)
virtual

Set the Aggregate element to be visible.

Reimplemented from makVrv::DtElement.

virtual void makVrv::DtAggregateElement::setInvisible ( bool  )
virtual

Sets whether or not this item is invisible.

Invisible is only on the map area – still present in list boxes. This method differs from show/hide or setVisible in that this will call setVisible with the DtShowHideContent::Invisible contens instead of the default InstanceHidden

virtual bool makVrv::DtAggregateElement::invisible ( ) const
virtual
DtAggregateStateListener& makVrv::DtAggregateElement::listener ( )
inline

Get the listener for the Aggregate this visualizer is visualizing.

virtual void makVrv::DtAggregateElement::slot_subordinatesChanged ( )
virtual
const ModelSetMap& makVrv::DtAggregateElement::modelSetMap ( ) const
inline

Get the current model set map.

template<typename VisualizerClass >
void makVrv::DtAggregateElement::findVisualizers ( std::vector< VisualizerClass * > &  visualizers)
inline
virtual DtElementEntry::ObjectType makVrv::DtAggregateElement::elementType ( ) const
inlinevirtual

Virtual function for getting the element type.

Implements makVrv::DtElement.

References makVrv::DtElementEntry::Aggregate.

void makVrv::DtAggregateElement::damageSet ( DtEntityStateListener::DamageState  damage)
protected

Update echelon hierarchy with destroyed state of this item.

virtual void makVrv::DtAggregateElement::updateVisibilityStates ( )
protectedvirtual

Goes through model set map and updates visibility state for each visualizer.

virtual void makVrv::DtAggregateElement::updateVisibilityState ( DtAggregateVisualizerSet )
protectedvirtual

Updates visibility state for individual visualizer set given model set of the visualizer set and other information.

Most notably for 2D visualizer sets the object will be hidden if the entity is embarked and the flag for hiding embarked objects is set

Member Data Documentation

boost::signalslib::signal<void( DtAggregateElement* )> makVrv::DtAggregateElement::signal_subordinatesChanged
ModelSetMap makVrv::DtAggregateElement::myAggregateModelSetMap
protected
DtAggregateStateListener& makVrv::DtAggregateElement::myListener
protected
DtSignalConnectionManager makVrv::DtAggregateElement::myConnections
protected
bool makVrv::DtAggregateElement::myInvisible
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)