|
VR-Engage
2.2
|
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>
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 |
| makVrv::DtGlStudioInstrumentPanelBuilderRtt::DtGlStudioInstrumentPanelBuilderRtt | ( | DtDe & | de | ) |
Constructor that initializes the builder with a display engine.
| de | Reference to the display engine to use for creating components |
Initializes the base class with the display engine reference.
References de().
|
overridevirtual |
Virtual destructor for proper cleanup.
|
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.
|
virtual |
Gets the name of the created channel.
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.
|
friend |
Allow the creator class access to protected members.
References DtGlStudioInstrumentPanelBuilderRttCreator.
Referenced by DtGlStudioInstrumentPanelBuilderRttCreator.
|
protected |
Gets the name of the created observer (commented out in current version)
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.