Provides HOOPS/3dGS-specific handling of the TKE_Text_Font opcode. More...
#include <HOpcodeHandler.h>
Public Member Functions | |
TK_Status | Clone (BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const |
TK_Status | Execute (BStreamFileToolkit &tk) alter |
TK_Status | Interpret (BStreamFileToolkit &tk, ID_Key key, int variant=0) alter |
TK_Status | Interpret (BStreamFileToolkit &tk, ID_Key key, char const *special) alter |
![]() | |
TK_Status | Clone (BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const |
float | GetExtraSpace () const |
int | GetExtraSpaceUnits () const |
float | GetGreekingLimit () const |
int | GetGreekingLimitUnits () const |
int | GetGreekingMode () const |
float | GetLineSpacing () const |
int | GetMask () const |
char const * | GetNames () const |
char alter * | GetNames () alter |
int | GetPreference () const |
float | GetPreferenceCutoff () const |
int | GetPreferenceCutoffUnits () const |
int const * | GetPreferences () const |
int | GetRenderer () const |
float | GetRendererCutoff () const |
int | GetRendererCutoffUnits () const |
int const * | GetRenderers () const |
float | GetRotation () const |
float | GetSize () const |
int | GetSizeUnits () const |
float | GetSlant () const |
float | GetTolerance () const |
int | GetToleranceUnits () const |
int | GetTransforms () const |
int | GetValue () const |
float | GetWidthScale () const |
TK_Status | Read (BStreamFileToolkit &tk) alter |
TK_Status | ReadAscii (BStreamFileToolkit &tk) alter |
Deprecated. | |
void | Reset () alter |
void | SetExtraSpace (float s) alter |
void | SetExtraSpaceUnits (int u) alter |
void | SetGreekingLimit (float s) alter |
void | SetGreekingLimitUnits (int u) alter |
void | SetGreekingMode (int m) alter |
void | SetLineSpacing (float s) alter |
void | SetMask (int m) alter |
void | SetNames (char const *names) alter |
void | SetNames (int length) alter |
void | SetPreference (int r) alter |
void | SetPreferenceCutoff (float s) alter |
void | SetPreferenceCutoffUnits (int u) alter |
void | SetPreferences (int r1, int r2) alter |
void | SetRenderer (int r) alter |
void | SetRendererCutoff (float s) alter |
void | SetRendererCutoffUnits (int u) alter |
void | SetRenderers (int r1, int r2) alter |
void | SetRotation (float r) alter |
void | SetSize (float s) alter |
void | SetSizeUnits (int u) alter |
void | SetSlant (float s) alter |
void | SetTolerance (float t) alter |
void | SetToleranceUnits (int u) alter |
void | SetTransforms (int t) alter |
void | SetValue (int v) alter |
void | SetWidthScale (float s) alter |
TK_Text_Font () | |
TK_Status | Write (BStreamFileToolkit &tk) alter |
TK_Status | WriteAscii (BStreamFileToolkit &tk) alter |
Deprecated. | |
![]() | |
BBaseOpcodeHandler (int op) | |
char const * | GetLoggingString () const |
char alter * | GetLoggingString () alter |
void | LogDebug (BStreamFileToolkit &tk, char const *string=0) alter |
virtual bool | Match_Instance (BStreamFileToolkit const &tk, Recorded_Instance alter *instance) alter |
virtual bool | NeedsContext (BStreamFileToolkit &tk) const |
bool | NeedsTag () const |
unsigned char | Opcode () const |
int | Pass (BStreamFileToolkit &tk) const |
void | SetLoggingString (char const *segment) alter |
void | SetLoggingString (int length) alter |
void | SetNeedsTag (bool n) alter |
TK_Status | Tag (BStreamFileToolkit &tk, int variant=-1) const |
bool | Tagging (BStreamFileToolkit &tk) const |
![]() | |
void | operator delete (void *p) |
force deallocation to happen in the stream toolkit's scope | |
void * | operator new (size_t size) |
force allocation to happen in the stream toolkit's scope | |
Additional Inherited Members | |
![]() | |
void | set_names (int length) alter |
for internal use only | |
void | set_names (char const *names) alter |
for internal use only | |
![]() | |
void | add_segment (BStreamFileToolkit &tk, ID_Key key) alter |
for internal use only | |
void | adjust_written (BStreamFileToolkit &tk, int count) alter |
for internal use only | |
void | bytes_to_floats (unsigned char const *in, float alter *out, int count) const |
for internal use only | |
void | decrease_nesting (BStreamFileToolkit &tk, int amount=1) alter |
for internal use only | |
bool | Find_Instance (BStreamFileToolkit &tk, int val1, int val2, int val3) alter |
bool | Find_Item (BStreamFileToolkit &tk, ID_Key key) const |
void | fix (int *i, int n) |
for internal use only | |
void | fix (short *s, int n) |
for internal use only | |
void | fix_in (float *f, int n) |
for internal use only | |
void | fix_out (float *f, int n) |
for internal use only | |
short | flip (short s) |
for internal use only | |
int | flip (int i) |
for internal use only | |
void | floats_to_bytes (float const *in, unsigned char alter *out, int count) const |
for internal use only | |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, int *rInts, unsigned int n) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned char &value) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, char &value) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned short &value) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, short &value) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, int &value) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, float &value) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, float *rFloats, unsigned int n) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, char *m_string, unsigned int n) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned char *m_string, unsigned int n) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, int *rInts, unsigned int n) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, short *rShorts, unsigned int n) alter |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned short *rShorts, unsigned int n) alter |
TK_Status | GetAsciiHex (BStreamFileToolkit &tk, const char *tag, unsigned char &value) alter |
TK_Status | GetAsciiHex (BStreamFileToolkit &tk, const char *tag, int &value) alter |
TK_Status | GetAsciiHex (BStreamFileToolkit &tk, const char *tag, char &value) alter |
TK_Status | GetAsciiHex (BStreamFileToolkit &tk, const char *tag, unsigned short &value) alter |
TK_Status | GetAsciiImageData (BStreamFileToolkit &tk, const char *tag, unsigned char *rValues, unsigned int n) alter |
TK_Status | GetData (BStreamFileToolkit &tk, char *b, int n) alter |
TK_Status | GetData (BStreamFileToolkit &tk, short *s, int n) alter |
TK_Status | GetData (BStreamFileToolkit &tk, int *i, int n) alter |
TK_Status | GetData (BStreamFileToolkit &tk, float *f, int n) alter |
TK_Status | GetData (BStreamFileToolkit &tk, unsigned char *b, int n) alter |
TK_Status | GetData (BStreamFileToolkit &tk, unsigned short *s, int n) alter |
TK_Status | GetData (BStreamFileToolkit &tk, unsigned int *i, int n) alter |
TK_Status | GetData (BStreamFileToolkit &tk, char &c) alter |
TK_Status | GetData (BStreamFileToolkit &tk, short &s) alter |
TK_Status | GetData (BStreamFileToolkit &tk, int &i) alter |
TK_Status | GetData (BStreamFileToolkit &tk, unsigned char &b) alter |
TK_Status | GetData (BStreamFileToolkit &tk, unsigned short &s) alter |
TK_Status | GetData (BStreamFileToolkit &tk, unsigned int &i) alter |
TK_Status | GetData (BStreamFileToolkit &tk, float &f) alter |
void | increase_nesting (BStreamFileToolkit &tk, int amount=1) alter |
for internal use only | |
ID_Key | last_key (BStreamFileToolkit &tk) const |
obsolete | |
void | log_opcode (BStreamFileToolkit &tk, unsigned int sequence, unsigned char opcode) alter |
for internal use only | |
TK_Status | LookatData (BStreamFileToolkit &tk, unsigned char &b) alter |
BBaseOpcodeHandler alter * | Opcode_Handler (BStreamFileToolkit &tk, unsigned char op) const |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, char const *b, int n) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, short const *s, int n) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, int const *i, int n) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, float const *f, int n) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned char const *b, int n) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned short const *s, int n) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned int const *i, int n) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, char const &c) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, short const &s) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, int const &i) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned char const &b) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned short const &s) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned int const &i) alter |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, float const &f) alter |
TK_Status | PutAsciiFlag (BStreamFileToolkit &tk, char const *tag, int const &i) alter |
TK_Status | PutAsciiHex (BStreamFileToolkit &tk, char const *tag, int const &i) alter |
TK_Status | PutAsciiMask (BStreamFileToolkit &tk, char const *tag, int const &i) alter |
TK_Status | PutAsciiOpcode (BStreamFileToolkit &tk, int adjust=1, bool is_end=false, bool want_newline=true) alter |
TK_Status | PutData (BStreamFileToolkit &tk, char const *b, int n) alter |
TK_Status | PutData (BStreamFileToolkit &tk, short const *s, int n) alter |
TK_Status | PutData (BStreamFileToolkit &tk, int const *i, int n) alter |
TK_Status | PutData (BStreamFileToolkit &tk, float const *f, int n) alter |
TK_Status | PutData (BStreamFileToolkit &tk, unsigned char const *b, int n) alter |
TK_Status | PutData (BStreamFileToolkit &tk, unsigned short const *s, int n) alter |
TK_Status | PutData (BStreamFileToolkit &tk, unsigned int const *i, int n) alter |
TK_Status | PutData (BStreamFileToolkit &tk, char const &c) alter |
TK_Status | PutData (BStreamFileToolkit &tk, short const &s) alter |
TK_Status | PutData (BStreamFileToolkit &tk, int const &i) alter |
TK_Status | PutData (BStreamFileToolkit &tk, unsigned char const &b) alter |
TK_Status | PutData (BStreamFileToolkit &tk, unsigned short const &s) alter |
TK_Status | PutData (BStreamFileToolkit &tk, unsigned int const &i) alter |
TK_Status | PutData (BStreamFileToolkit &tk, float const &f) alter |
TK_Status | PutEndXMLTag (BStreamFileToolkit &tk, char const *tag) alter |
TK_Status | PutOpcode (BStreamFileToolkit &tk, int adjust=1) alter |
TK_Status | PutStartXMLTag (BStreamFileToolkit &tk, char const *tag) alter |
TK_Status | Read_Referenced_Segment (BStreamFileToolkit &tk, int &i_progress) alter |
TK_Status | ReadAsciiLine (BStreamFileToolkit &tk, unsigned int *readSize=0) alter |
TK_Status | ReadAsciiWord (BStreamFileToolkit &tk, unsigned int *readSize=0) alter |
TK_Status | ReadEndOpcode (BStreamFileToolkit &tk) alter |
void | Record_Instance (BStreamFileToolkit &tk, ID_Key key, int variant, int val1, int val2, int val3) const |
void | Remember_Item (BStreamFileToolkit &tk, ID_Key key) const |
ID_Key | remove_segment (BStreamFileToolkit &tk) alter |
for internal use only | |
bool | RemoveAngularBrackets (char *string) alter |
bool | RemoveQuotes (char *string) alter |
void | Revisit (BStreamFileToolkit &tk, float priority=0.0f, int variant=0) const |
void | set_last_key (BStreamFileToolkit &tk, ID_Key key) alter |
sets the given key as "most recent" on the toolkit for the purposes of associating keys with indices | |
TK_Status | SkipNewlineAndTabs (BStreamFileToolkit &tk, unsigned int *readSize=0) alter |
bool | validate_count (int count, int limit=1<< 24) const |
![]() | |
static float | read_float (char const *cp, char const *alter *newcpp=0) |
static float | read_float (char const *cp, char alter *alter *newcpp) |
for internal use only | |
static char * | write_float (char *buffer, double f) |
for internal use only | |
![]() | |
float | m_extra_space |
for internal use only | |
float | m_greeking_limit |
for internal use only | |
unsigned char | m_greeking_mode |
for internal use only | |
unsigned char | m_greeking_units |
for internal use only | |
float | m_line_spacing |
for internal use only | |
int | m_mask |
specifies which rendering options are active (and hence, which are valid). For internal use only. | |
char * | m_names |
for internal use only | |
int | m_names_length |
for internal use only | |
float | m_preference_cutoff |
for internal use only | |
unsigned char | m_preference_cutoff_units |
for internal use only | |
int | m_preferences [2] |
for internal use only | |
float | m_renderer_cutoff |
for internal use only | |
unsigned char | m_renderer_cutoff_units |
for internal use only | |
int | m_renderers [2] |
for internal use only | |
float | m_rotation |
for internal use only | |
float | m_size |
for internal use only | |
unsigned char | m_size_units |
for internal use only | |
float | m_slant |
for internal use only | |
unsigned char | m_space_units |
for internal use only | |
float | m_tolerance |
for internal use only | |
unsigned char | m_tolerance_units |
for internal use only | |
unsigned char | m_transforms |
for internal use only | |
int | m_value |
specifies what values to set for boolean options. For internal use only. | |
float | m_width_scale |
for internal use only | |
![]() | |
char * | m_ascii_buffer |
int | m_ascii_length |
int | m_ascii_progress |
Tracks the amount of data that has been read/written so far by GetAscii functions. | |
int | m_ascii_size |
int | m_ascii_stage |
unsigned char | m_byte |
temporary | |
char | m_char |
temporary | |
int | m_debug_allocated |
int | m_debug_length |
char * | m_debug_string |
int | m_int |
temporary | |
bool | m_needs_tag |
Indicate if this object explicitly needs tagging. | |
unsigned char | m_opcode |
The opcode being handled by this particular object. | |
int | m_progress |
Tracks the amount of data that has been read/written so far. | |
int | m_stage |
The writing stage. | |
unsigned short | m_unsigned_short |
temporary | |
Provides HOOPS/3dGS-specific handling of the TKE_Text_Font opcode.
This class complements the read/write functionality implemented in the base class by overloading the Interpret and Execute methods to provide HOOPS/3dGS-specific opcode handling.
Writing: The HOOPS/3dGS database is queried in the Interpret method, and this data is then written to the HSF file by the Write method Reading: The data is read from the HSF file by the Read method, and is mapped to the HOOPS/3dGS scene-graph within the Execute method.
Export/import of additional user-data (which is associated with this HSF object) would typically be done by overloading the Write and Read methods.
|
virtual |
Copies the opcode handler
tk | A reference to the BStreamFileToolkit object. |
handler | A pointer to the opcode handler object. Passed by reference. |
Reimplemented from BBaseOpcodeHandler.
|
virtual |
Processes the binary data that has been read for the current object, which involves passing the data to application-specific data structures.
tk | A reference to the BStreamFileToolkit object. |
Reimplemented from BBaseOpcodeHandler.
|
virtual |
Extracts graphics data (typically from the application's scene-graph) and maps it to the opcode handler's data members in preparation for writing out an object to the file.
tk | A reference to the BStreamFileToolkit object. |
key | An identifier to the object (for example, the HOOPS key of a geometry item) |
variant | optional specification of an alternate form, such as a Level-of-Detail representation |
Reimplemented from BBaseOpcodeHandler.
|
inlinevirtual |
Extracts graphics data (typically from the application's scene-graph) and maps it to the opcode handler's data members in preparation for writing out an object to the file.
tk | A reference to the BStreamFileToolkit object. |
key | An identifier to the object (for example, the HOOPS key of a geometry item) |
special | A string value of particular data |
Reimplemented from BBaseOpcodeHandler.
References BBaseOpcodeHandler::Interpret().