VR-Engage  2.2
Loading...
Searching...
No Matches
makVrv::DtGlStudioInstrumentPanelBuilderRtt Class Reference

Detailed Description

This class extends DtGlStudioInstrumentPanelBuilder to create instrument panels that render to textures rather than directly to the screen. This allows instrument panels to be displayed on other surfaces or in separate viewports, improving performance and flexibility. It sets up observers, channels, and rendering configurations to properly display instrument panels for selected objects.

#include <DtGlStudioInstrumentPanelBuilderRtt.h>

Inheritance diagram for makVrv::DtGlStudioInstrumentPanelBuilderRtt:
[legend]

Public Member Functions

 DtGlStudioInstrumentPanelBuilderRtt (DtDe &de)
 
virtual ~DtGlStudioInstrumentPanelBuilderRtt () override
 
virtual void createInsetView () override
 
virtual std::string channelName () const
 

Protected Attributes

std::string myChannelName
 

Friends

class DtGlStudioInstrumentPanelBuilderRttCreator
 

Constructor & Destructor Documentation

◆ DtGlStudioInstrumentPanelBuilderRtt()

makVrv::DtGlStudioInstrumentPanelBuilderRtt::DtGlStudioInstrumentPanelBuilderRtt ( DtDe & de)

Constructor that initializes the builder with a display engine.

Parameters
deReference to the display engine to use for creating components

Initializes the base class with the display engine reference.

References de().

◆ ~DtGlStudioInstrumentPanelBuilderRtt()

virtual makVrv::DtGlStudioInstrumentPanelBuilderRtt::~DtGlStudioInstrumentPanelBuilderRtt ( )
overridevirtual

Virtual destructor for proper cleanup.

Member Function Documentation

◆ createInsetView()

virtual void makVrv::DtGlStudioInstrumentPanelBuilderRtt::createInsetView ( )
overridevirtual

Creates an inset view for the currently selected object.

Creates an observer configuration, sets up a channel with specific viewport settings, and configures it as a render-to-texture channel. The channel is created for the currently selected object and attaches an observer to it. The channel is configured based on the model definition parameters and is set to render to a texture rather than directly to the screen.

◆ channelName()

virtual std::string makVrv::DtGlStudioInstrumentPanelBuilderRtt::channelName ( ) const
virtual

Gets the name of the created channel.

Returns
String containing the channel name

Returns the name of the channel created by the createInsetView() method. The name is composed of the display name of the selected object and the name of the model definition.

Friends And Related Symbol Documentation

◆ DtGlStudioInstrumentPanelBuilderRttCreator

Allow the creator class access to protected members.

References DtGlStudioInstrumentPanelBuilderRttCreator.

Referenced by DtGlStudioInstrumentPanelBuilderRttCreator.

Member Data Documentation

◆ myChannelName

std::string makVrv::DtGlStudioInstrumentPanelBuilderRtt::myChannelName
protected

Gets the name of the created observer (commented out in current version)

Returns
String containing the observer name

This method is commented out in the current implementation.

Name of the channel created by createInsetView()

This is set by createInsetView() and returned by channelName(). The name is composed of the display name of the selected object and the name of the model definition.


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