#include <Inventor/nodes/SoAsciiText.h>
Inheritance diagram for SoAsciiText::
Public Types | |
enum | Justification { LEFT = 1, RIGHT, CENTER } |
Public Methods | |
SoAsciiText (void) | |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | getPrimitiveCount (SoGetPrimitiveCountAction *action) |
Static Public Methods | |
void | initClass (void) |
Public Attributes | |
SoMFString | string |
SoSFFloat | spacing |
SoSFEnum | justification |
SoMFFloat | width |
Protected Methods | |
virtual | ~SoAsciiText () |
virtual void | computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er) |
virtual void | generatePrimitives (SoAction *) |
virtual SoDetail * | createTriangleDetail (SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const SoPrimitiveVertex *v3, SoPickedPoint *pp) |
virtual void | notify (SoNotList *list) |
The text is rendered using 3D polygon geometry.
This node is different from the SoText2 node in that it rotates, scales, translates etc just like other geometry in the scene. It is different from the SoText3 node in that it renders the text "flat", i.e. does not extrude the fonts to have depth.
|
Font justification values. |
|
Constructor. |
|
Destructor. |
|
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoShape. |
|
Action method for the SoGLRenderAction. This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method. Reimplemented from SoShape. |
|
Action method for the SoGetPrimitiveCountAction. Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action. Nodes influencing how geometry nodes calculates their primitive count also overrides this method to change the relevant state variables. Reimplemented from SoShape. |
|
For internal use only. Reimplemented from SoShape. |
|
For internal use only. Reimplemented from SoShape. |
|
Will create triangle detail for a SoPickedPoint. This method will only be called internally, when generatePrimitives() is used for picking (SoShape::rayPick() is not overridden).
This method returns This is not necessary with Coin. Of course, if you choose to override it, it will work in the same way as Open Inventor.
For this to work, you must supply a face or line detail when generating primitives. If you supply Reimplemented from SoShape. |
|
Notifies all auditors for this instance when changes are made. Reimplemented from SoNode. |
|
Lines of text to render. Default value is empty. |
|
Spacing between each line. Defaults to 1.0. |
|
Horizontal alignment. Default SoAsciiText::LEFT. |
|
Defines the width of each line. |