Annotation text property node. More...
#include <Inventor/nodes/SoAnnoText3Property.h>
Public Types | |
enum | RenderPrintType { RENDER3D_PRINT_VECTOR, RENDER3D_PRINT_RASTER, RENDER2D_PRINT_RASTER } |
enum | FontSizeHint { ANNOTATION, FIT_VECTOR_TEXT } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoAnnoText3Property () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static void | setMaxViewingFontSize (unsigned int size) |
static unsigned int | getMaxViewingFontSize () |
Public Attributes | |
SoSFEnum | renderPrintType |
SoSFBool | isCharOrientedRasterPrint |
SoSFEnum | fontSizeHint |
This node sets the current annotation text properties in the state used by all subsequent SoAnnoText3 nodes.
renderPrintType | RENDER3D_PRINT_VECTOR |
isCharOrientedRasterPrint | TRUE |
fontSizeHint | FIT_VECTOR_TEXT |
Render print type.
RENDER3D_PRINT_VECTOR |
Text is rendered in 3D (like SoText3). It is printed as vectors when the Hard Copy Extension (formerly known as PlotMaster) is used. |
RENDER3D_PRINT_RASTER |
Text is rendered in 3D (like SoText3). It is printed as raster text using PostScript fonts when the Hard Copy Extension is used. |
RENDER2D_PRINT_RASTER |
Text is rendered in 2D (like SoText2) but can be zoomed because the font size is interpreted in the current units. It is printed as raster text using PostScript fonts when the Hard Copy Extension is used. Note: if this render type is set, the text will not be exported by an SoToPDFAction. |
SoAnnoText3Property::SoAnnoText3Property | ( | ) |
Constructor.
static SoType SoAnnoText3Property::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
static unsigned int SoAnnoText3Property::getMaxViewingFontSize | ( | ) | [static] |
Gets the maximum font size (in pixels) that can be used when renderPrintType field is equal to RENDER2D_PRINT_RASTER.
virtual SoType SoAnnoText3Property::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
static void SoAnnoText3Property::setMaxViewingFontSize | ( | unsigned int | size | ) | [static] |
Sets the maximum font size (in pixels) when renderPrintType field is equal to RENDER2D_PRINT_RASTER.
The maximum font size can also be set using the OIV_MAX_ANNO_RENDER2D_SIZE environment variable.
This flag is used when the field renderPrintType is equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_RASTER.
It specifies how the font size for 2D text (whether rendered or raster) changes according to the view. Use enum FontSizeHint. Default is FIT_VECTOR_TEXT.
This flag is used when the field renderPrintType is equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_RASTER.
It specifies whether the text should be oriented (or not) for printing when using the Hard Copy Extension. Default is TRUE.
This flag specifies how annotation text should be rendered (as 3D text or 2D text) and how it should be printed when the Hard Copy Extension is used (as 3D vectors or 2D PostScript raster fonts).
Use enum RenderPrintType. Default is RENDER3D_PRINT_VECTOR.