A class for controlling text owned by the TextRenderer.
|
| | DtTextProxy (DtTextRenderer *parent) |
| |
| DtTextProxy * | clone (DtTextRenderer *parent) const |
| |
| virtual | ~DtTextProxy () |
| |
| void | setAlignment (DtFontInterface::TextAlignment alignment) |
| |
| DtFontInterface::TextAlignment | alignment () const |
| |
| void | setParent (DtTextRenderer *) |
| |
| void | setPosition (float x, float y, float z, float w=0) |
| |
| const float * | position () const |
| |
| void | setMaximumWorldHeight (double worldHeightInMeters) |
| |
| double | maximumWorldHeight () const |
| |
| void | setMaximumWorldWidth (double worldWidthInMeters) |
| |
| double | maximumWorldWidth () const |
| |
| void | setIsHiddenWhenExceedingMaximumWorldDimensions (bool) |
| |
| bool | isHiddenWhenExceedingMaximumWorldDimensions () const |
| |
| void | setRotation (float angle) |
| |
| float | rotation () const |
| |
| void | setColor (float r, float g, float b, float a) |
| |
| const float * | color () const |
| |
| void | setString (const DtUnicode &str) |
| |
| const DtUnicode & | string () const |
| |
| void | setFont (DtFontInterface *font) |
| |
| std::vector< double > | fontConfigurationMinimumAltitudes () const |
| |
| void | setAltitudeSpecificFonts (const DtAltitudeBasedConfigurationCollection &) |
| |
| void | clearAltitudeSpecificFonts () |
| |
| void | setIsForcedAltitudeBasedConfigurationEnabled (bool enabled) |
| |
| bool | isForcedAltitudeBasedConfigurationEnabled () const |
| |
| void | setBaseAltitudeToUseForForcedAltitudeBasedConfigurations (double minimumAltitudeForUse) |
| |
| DtFontInterface * | font (double altitude=std::numeric_limits< double >::min()) const |
| |
| DtBoundingBox | calculateBoundingBox (double cameraAltitude=std::numeric_limits< double >::min(), unsigned int pos=0, int len=-1, const DtPen &pen=DtPen()) const |
| |
| void | setBounds (const DtBoundingBox &box) |
| |
| const DtBoundingBox & | bounds (double cameraAltitude) const |
| |
| void | setBoundsByMinimumAltitude (const DtBoundingBox &box, double minimumAltitudeForUse) |
| |
| void | setGroup (unsigned int group) |
| |
| void | setLodOutAltitude (double lodOutAltitude) |
| |
| double | lodOutAltitude () const |
| |
| void | setIsLodOutAltitudeEnabled (bool isLodOutAltitudeEnabled) |
| |
| bool | isLodOutAltitudeEnabled () const |
| |
| void | setIsRotationInScreenSpace (bool isRotationInScreenSpace) |
| |
| bool | isRotationInScreenSpace () const |
| |
| unsigned int | group () const |
| |
| virtual void | renderText (DtTexturedGlyphRenderer *, DtFontInterface *font, const DtObserverRenderData &channelRenderData, int proxyIndex, DtQuadsRenderData *renderData) const |
| |
| | DtTextProxyInterface () |
| |
| virtual | ~DtTextProxyInterface () |
| |
| void makVrv::DtTextProxy::setMaximumWorldHeight |
( |
double |
worldHeightInMeters | ) |
|
|
virtual |
Set the maximum world-space height for the this proxy, in meters. Once the text proxy exceeds the maximum world-space height, the text will not be rendered. To disable this mechanism for height altogether, set this property to -1.0. Calling setIsHiddenWhenExceedingMaximumWorldDimensions(false) will cause width to not be used either. By default, this property is set to -1.0 (and as a result this mechanism is unused by default).
Implements makVrv::DtTextProxyInterface.
| void makVrv::DtTextProxy::setMaximumWorldWidth |
( |
double |
worldWidthInMeters | ) |
|
|
virtual |
Set the maximum world-space width for the this proxy, in meters. Once the text proxy exceeds the maximum world-space width, the text will not be rendered. To disable this mechanism for width altogether, set this property to -1.0. //! Calling setIsHiddenWhenExceedingMaximumWorldDimensions(false) will cause width to not be used either. By default, this property is set to -1.0 (and as a result this mechanism is unused by default).
Implements makVrv::DtTextProxyInterface.
| void makVrv::DtTextProxy::setIsForcedAltitudeBasedConfigurationEnabled |
( |
bool |
enabled | ) |
|
|
virtual |
Set whether or not a particular altitude-based configuration is always used for this text proxy. This only matters if altitude-based configurations are specified for this text proxy. The altitude-based configuration used for rendering must meet the following conditions: (1) The configuration's base altitude is less than the altitude provided using the DtTextProxy::setBaseAltitudeToUseForForcedFont API. (2) The configuration's base altitude is larger than all other altitude-based configurations, defined for this text proxy, that also meet condition (1).
Altitude is in meters from mean sea level. Default is false.
Implements makVrv::DtTextProxyInterface.
Get the font to use for rendering based on the provided base altitude. The result of this API only differs if altitude-based fonts are specified for this text proxy.
The returned font is provided by the altitude-based configuration that meets both of the following conditions: (1) The configuration's base altitude is less than the altitude provided. (2) The configuration's base altitude is larger than all other altitude-based configurations, defined for this text proxy, that also meet condition (1).
Implements makVrv::DtTextProxyInterface.
Get the bounding box to use for rendering based on the provided base altitude. The result of this API only differs if altitude-based bounds are specified for this text proxy.
The returned bounding box is provided by the altitude-based configuration that meets both of the following conditions: (1) The configuration's base altitude is less than the altitude provided. (2) The configuration's base altitude is larger than all other altitude-based configurations, defined for this text proxy, that also meet condition (1).
Implements makVrv::DtTextProxyInterface.