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

DtInstrumentPanelCreator creates display, window, and observer configurations to implement an instrument panel window for the given model definition. More...

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

Public Member Functions

 ~DtGlStudioInstrumentPanelBuilder ()
 Destructor.
virtual void createInstrumentPanel (const DtModelDefinition &modelDefinition)
 Calls createInsetView on the base class to get the window created and then looks up the DtGlStudioDriver and calls realizeCockpit with the name of the model definition.
- Public Member Functions inherited from makVrv::DtInstrumentPanelBuilder
 ~DtInstrumentPanelBuilder ()
 Destructor.
- Public Member Functions inherited from makVrv::DtInsetViewCreator
 DtInsetViewCreator (DtDe &de)
virtual ~DtInsetViewCreator ()
virtual void createInsetView ()
virtual void createInsetView (const std::string &s)
 Creates and displays a new window with a new observer given the base display name.
virtual void createInsetViewForObserverMode (const std::string &observerMode)
 Given the observer mode string, creates an inset view for that observer mode.

Protected Member Functions

 DtGlStudioInstrumentPanelBuilder (DtDe &de)
 Constructor needs the DtDe to use.
virtual DtObserverConfiguration createObserverConfiguration (const std::string &observerName, bool realize=true)
 Overridden to cache the name of the observer in myObserverName.
virtual DtWindowConfiguration createWindowConfigurationFor (const std::string &displayName, const DtDisplayConfiguration &dec, const DtObserverConfiguration &observerConfig)
 Overridden to remove the "showCockpits" keyword (which would show all mapped cockpits) in favor of the channel keyword from the model definition (which shows only that cockpit).
virtual std::string generateWindowName (const std::string &displayName) const
 Called by createWindowConfigurationFor to generate the base of the window name.
- Protected Member Functions inherited from makVrv::DtInstrumentPanelBuilder
 DtInstrumentPanelBuilder (DtDe &de)
 Constructor needs the DtDe to use.
- Protected Member Functions inherited from makVrv::DtInsetViewCreator
virtual DtDisplayConfiguration createDisplayConfigurationFor ()
 Creates a display configuration based on the default display engine configuration given the display name.
virtual DtObserverConfiguration createObserverConfigurationFor (const std::string &displayName, bool realize=true)
 Creates and returns a new observer configuration.
virtual DtObserverConfiguration createObserverConfigurationFor (bool realize=true)
 Creates and returns a new observer configuration that doesn't incorporate the display name into the observer name.
virtual DtObserverConfiguration createObserverConfigurationForObserverMode (const std::string &mode, bool realize=true)
 Creates and returns a new observer configuration.

Protected Attributes

DtModelDefinition myModelDefinition
std::string myObserverName

Friends

class DtGlStudioInstrumentPanelBuilderCreator

Detailed Description

DtInstrumentPanelCreator creates display, window, and observer configurations to implement an instrument panel window for the given model definition.

Constructor & Destructor Documentation

makVrv::DtGlStudioInstrumentPanelBuilder::~DtGlStudioInstrumentPanelBuilder ( )

Destructor.

makVrv::DtGlStudioInstrumentPanelBuilder::DtGlStudioInstrumentPanelBuilder ( DtDe de)
protected

Constructor needs the DtDe to use.

Member Function Documentation

virtual void makVrv::DtGlStudioInstrumentPanelBuilder::createInstrumentPanel ( const DtModelDefinition modelDefinition)
virtual

Calls createInsetView on the base class to get the window created and then looks up the DtGlStudioDriver and calls realizeCockpit with the name of the model definition.

Reimplemented from makVrv::DtInstrumentPanelBuilder.

virtual DtObserverConfiguration makVrv::DtGlStudioInstrumentPanelBuilder::createObserverConfiguration ( const std::string &  observerName,
bool  realize = true 
)
protectedvirtual

Overridden to cache the name of the observer in myObserverName.

Reimplemented from makVrv::DtInsetViewCreator.

virtual DtWindowConfiguration makVrv::DtGlStudioInstrumentPanelBuilder::createWindowConfigurationFor ( const std::string &  displayName,
const DtDisplayConfiguration dec,
const DtObserverConfiguration observerConfig 
)
protectedvirtual

Overridden to remove the "showCockpits" keyword (which would show all mapped cockpits) in favor of the channel keyword from the model definition (which shows only that cockpit).

Sets the size based on the PerspectiveWidth and PerspectiveHeight height parameters of the model definition.

Reimplemented from makVrv::DtInsetViewCreator.

virtual std::string makVrv::DtGlStudioInstrumentPanelBuilder::generateWindowName ( const std::string &  displayName) const
protectedvirtual

Called by createWindowConfigurationFor to generate the base of the window name.

Defaults to displayName + " Panel". Override to control the naming of inset windows.

Reimplemented from makVrv::DtInsetViewCreator.

Friends And Related Function Documentation

Member Data Documentation

DtModelDefinition makVrv::DtGlStudioInstrumentPanelBuilder::myModelDefinition
protected
std::string makVrv::DtGlStudioInstrumentPanelBuilder::myObserverName
protected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)