Provides HOOPS/3dGS-specific handling of the TKE_Rendering_Options opcode. More...
#include <HOpcodeHandler.h>
Additional Inherited Members | |
![]() | |
void | add_segment (BStreamFileToolkit &tk, ID_Key key) |
for internal use only | |
void | adjust_written (BStreamFileToolkit &tk, int count) |
for internal use only | |
void | bytes_to_floats (unsigned char const *in, float *out, int count) const |
for internal use only | |
void | decrease_nesting (BStreamFileToolkit &tk, int amount=1) |
for internal use only | |
bool | Find_Instance (BStreamFileToolkit &tk, int val1, int val2, int val3) |
bool | Find_Item (BStreamFileToolkit &tk, ID_Key key) const |
void | floats_to_bytes (float const *in, unsigned char *out, int count) const |
for internal use only | |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, int *rInts, unsigned int n) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned char &value) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, char &value) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned short &value) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, short &value) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, int &value) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, float &value) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, float *rFloats, unsigned int n) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, char *m_string, unsigned int n) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned char *m_string, unsigned int n) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, int *rInts, unsigned int n) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, short *rShorts, unsigned int n) |
TK_Status | GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned short *rShorts, unsigned int n) |
TK_Status | GetAsciiHex (BStreamFileToolkit &tk, const char *tag, unsigned char &value) |
TK_Status | GetAsciiHex (BStreamFileToolkit &tk, const char *tag, int &value) |
TK_Status | GetAsciiHex (BStreamFileToolkit &tk, const char *tag, char &value) |
TK_Status | GetAsciiHex (BStreamFileToolkit &tk, const char *tag, unsigned short &value) |
TK_Status | GetAsciiImageData (BStreamFileToolkit &tk, const char *tag, unsigned char *rValues, unsigned int n) |
TK_Status | GetGeneral (BStreamFileToolkit &tk) |
void | increase_nesting (BStreamFileToolkit &tk, int amount=1) |
for internal use only | |
ID_Key | last_key (BStreamFileToolkit &tk) const |
obsolete | |
void | log_opcode (BStreamFileToolkit &tk, unsigned int sequence, unsigned char opcode) |
for internal use only | |
BBaseOpcodeHandler * | Opcode_Handler (BStreamFileToolkit &tk, unsigned char op) const |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, char const *b, int n) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, short const *s, int n) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, int const *i, int n) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, float const *f, int n) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned char const *b, int n) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned short const *s, int n) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned int const *i, int n) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, char const &c) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, short const &s) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, int const &i) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned char const &b) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned short const &s) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned int const &i) |
TK_Status | PutAsciiData (BStreamFileToolkit &tk, char const *tag, float const &f) |
TK_Status | PutAsciiFlag (BStreamFileToolkit &tk, char const *tag, int const &i) |
TK_Status | PutAsciiHex (BStreamFileToolkit &tk, char const *tag, int const &i) |
TK_Status | PutAsciiMask (BStreamFileToolkit &tk, char const *tag, int const &i) |
TK_Status | PutAsciiOpcode (BStreamFileToolkit &tk, int adjust=1, bool is_end=false, bool want_newline=true) |
TK_Status | PutEndXMLTag (BStreamFileToolkit &tk, char const *tag) |
TK_Status | PutGeneral (BStreamFileToolkit &tk) |
TK_Status | PutOpcode (BStreamFileToolkit &tk, int adjust=1) |
TK_Status | PutStartXMLTag (BStreamFileToolkit &tk, char const *tag) |
TK_Status | Read_Referenced_Segment (BStreamFileToolkit &tk, int &i_progress) |
TK_Status | ReadAsciiLine (BStreamFileToolkit &tk, unsigned int *readSize=0) |
TK_Status | ReadAsciiWord (BStreamFileToolkit &tk, unsigned int *readSize=0) |
TK_Status | ReadEndOpcode (BStreamFileToolkit &tk) |
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) |
for internal use only | |
bool | RemoveAngularBrackets (char *string) |
bool | RemoveQuotes (char *string) |
void | Revisit (BStreamFileToolkit &tk, float priority=0.0f, int variant=0) const |
void | set_last_key (BStreamFileToolkit &tk, ID_Key key) |
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) |
bool | validate_count (int count, int limit=1<< 24) const |
![]() | |
static void | fix (int *i, int n) |
for internal use only | |
static void | fix (short *s, int n) |
for internal use only | |
static void | fix_in (float *f, int n) |
for internal use only | |
static void | fix_in (double *d, int n) |
for internal use only | |
static void | fix_out (float *f, int n) |
for internal use only | |
static void | fix_out (double *d, int n) |
for internal use only | |
static short | flip (short s) |
for internal use only | |
static int | flip (int i) |
for internal use only | |
static TK_Status | GetData (BStreamFileToolkit &tk, char *b, int n) |
static TK_Status | GetData (BStreamFileToolkit &tk, short *s, int n) |
static TK_Status | GetData (BStreamFileToolkit &tk, int *i, int n) |
static TK_Status | GetData (BStreamFileToolkit &tk, float *f, int n) |
static TK_Status | GetData (BStreamFileToolkit &tk, double *d, int n) |
static TK_Status | GetData (BStreamFileToolkit &tk, unsigned char *b, int n) |
static TK_Status | GetData (BStreamFileToolkit &tk, unsigned short *s, int n) |
static TK_Status | GetData (BStreamFileToolkit &tk, unsigned int *i, int n) |
static TK_Status | GetData (BStreamFileToolkit &tk, char &c) |
static TK_Status | GetData (BStreamFileToolkit &tk, short &s) |
static TK_Status | GetData (BStreamFileToolkit &tk, int &i) |
static TK_Status | GetData (BStreamFileToolkit &tk, unsigned char &b) |
static TK_Status | GetData (BStreamFileToolkit &tk, unsigned short &s) |
static TK_Status | GetData (BStreamFileToolkit &tk, unsigned int &i) |
static TK_Status | GetData (BStreamFileToolkit &tk, float &f) |
static TK_Status | GetData (BStreamFileToolkit &tk, double &d) |
static TK_Status | LookatData (BStreamFileToolkit &tk, unsigned char &b) |
static TK_Status | PutData (BStreamFileToolkit &tk, char const *b, int n) |
static TK_Status | PutData (BStreamFileToolkit &tk, short const *s, int n) |
static TK_Status | PutData (BStreamFileToolkit &tk, int const *i, int n) |
static TK_Status | PutData (BStreamFileToolkit &tk, float const *f, int n) |
static TK_Status | PutData (BStreamFileToolkit &tk, double const *d, int n) |
static TK_Status | PutData (BStreamFileToolkit &tk, unsigned char const *b, int n) |
static TK_Status | PutData (BStreamFileToolkit &tk, unsigned short const *s, int n) |
static TK_Status | PutData (BStreamFileToolkit &tk, unsigned int const *i, int n) |
static TK_Status | PutData (BStreamFileToolkit &tk, char const &c) |
static TK_Status | PutData (BStreamFileToolkit &tk, short const &s) |
static TK_Status | PutData (BStreamFileToolkit &tk, int const &i) |
static TK_Status | PutData (BStreamFileToolkit &tk, unsigned char const &b) |
static TK_Status | PutData (BStreamFileToolkit &tk, unsigned short const &s) |
static TK_Status | PutData (BStreamFileToolkit &tk, unsigned int const &i) |
static TK_Status | PutData (BStreamFileToolkit &tk, float const &f) |
static TK_Status | PutData (BStreamFileToolkit &tk, double const &d) |
static float | read_float (char const *cp, char const **newcpp=0) |
static float | read_float (char const *cp, char **newcpp) |
for internal use only | |
static char * | write_float (char *buffer, double f) |
for internal use only | |
![]() | |
float | m_ambient_up_vector [3] |
For internal use only. | |
unsigned char | m_antialias |
float | m_bounding [6] |
For internal use only. | |
unsigned char | m_buffer_options_mask |
For internal use only. | |
unsigned char | m_buffer_options_value |
For internal use only. | |
int | m_buffer_size_limit |
For internal use only. | |
unsigned char | m_clamp |
For internal use only. | |
unsigned short | m_contour_options |
for internal use only. | |
char | m_contour_value_adjustment |
for internal use only. | |
float | m_contour_value_scale |
for internal use only. | |
float | m_contour_value_translate |
for internal use only. | |
int | m_curve_budget |
For internal use only. | |
int | m_curve_continued_budget |
For internal use only. | |
float | m_curve_max_angle |
For internal use only. | |
float | m_curve_max_deviation |
For internal use only. | |
float | m_curve_max_length |
For internal use only. | |
unsigned char | m_cut_geometry |
For internal use only. | |
unsigned char | m_cut_geometry_level |
For internal use only. | |
unsigned char | m_cut_geometry_match |
For internal use only. | |
float | m_cut_geometry_tolerance |
For internal use only. | |
float | m_cutoff [8] |
For internal use only. | |
char | m_cylinder [8] |
For internal use only. | |
int | m_debug |
For internal use only. | |
unsigned char | m_depth_peeling_algorithm |
For internal use only. | |
unsigned char | m_depth_peeling_layers |
For internal use only. | |
float | m_depth_peeling_min_area |
For internal use only. | |
float | m_depth_range [2] |
For internal use only. | |
float | m_dihedral |
For internal use only. | |
unsigned char | m_display_list_level |
For internal use only. | |
int | m_edge_join_cutoff_angle |
For internal use only. | |
int | m_extra |
int | m_face_displacement |
For internal use only. | |
unsigned char | m_fallback |
For internal use only. | |
float | m_fog_limits [2] |
For internal use only. | |
Lock_Masks | m_forced |
For internal use only. | |
int | m_general_displacement |
For internal use only. | |
unsigned char | m_geometry_options |
For internal use only. | |
char * | m_gooch_color_map_segment |
For internal use only. | |
int | m_gooch_color_map_segment_length |
float | m_gooch_color_range [2] |
For internal use only. | |
float | m_gooch_diffuse_weight |
For internal use only. | |
unsigned char | m_heuristic |
For internal use only. | |
float | m_hlr_color [3] |
for internal use only. | |
float | m_hlr_dim_factor |
For internal use only. | |
float | m_hlr_face_displacement |
For internal use only. | |
unsigned char | m_hlr_hsr_algorithm |
for internal use only. | |
int | m_hlr_line_pattern |
For internal use only. | |
int | m_hlr_options |
For internal use only. | |
float | m_hlr_transparency_cutoff |
For internal use only. | |
float | m_hlr_weight |
for internal use only. | |
unsigned char | m_hlr_weight_units |
for internal use only. | |
unsigned char | m_hsr |
internal use; low half hsr, high half thsr. For internal use only. | |
float | m_image_scale [2] |
For internal use only. | |
float | m_image_tint_color [3] |
For internal use only. | |
int | m_isoline_color_count |
for internal use only. | |
float * | m_isoline_colors |
for internal use only. | |
unsigned short | m_isoline_options |
for internal use only. | |
int | m_isoline_pattern_count |
for internal use only. | |
char ** | m_isoline_patterns |
for internal use only. | |
int | m_isoline_position_count |
for internal use only. | |
char | m_isoline_position_type |
for internal use only. | |
float * | m_isoline_positions |
for internal use only. | |
int | m_isoline_weight_count |
for internal use only. | |
unsigned char * | m_isoline_weights_unit |
for internal use only. | |
float * | m_isoline_weights_value |
for internal use only. | |
int | m_join_cutoff_angle |
For internal use only. | |
Lock_Masks | m_lock |
For internal use only. | |
char | m_lod_algorithm |
For internal use only. | |
int | m_lod_options_mask |
For internal use only. | |
int | m_lod_options_value |
For internal use only. | |
int | m_mask [3] |
internal use; specifies which rendering options are active (and hence, which are valid). For internal use only. | |
unsigned short | m_mask_transform |
For internal use only. | |
int | m_max_degree |
For internal use only. | |
int | m_min_triangle_count |
For internal use only. | |
char | m_num_cutoffs |
For internal use only. | |
char | m_num_cylinder |
For internal use only. | |
unsigned char | m_num_levels |
For internal use only. | |
char | m_num_ratios |
For internal use only. | |
char | m_num_sphere |
For internal use only. | |
char | m_num_thresholds |
For internal use only. | |
int | m_nurbs_options_mask |
For internal use only. | |
int | m_nurbs_options_value |
For internal use only. | |
float | m_ratio [8] |
For internal use only. | |
float | m_screen_range [4] |
For internal use only. | |
unsigned short | m_shadow_map |
For internal use only. | |
unsigned short | m_shadow_map_resolution |
For internal use only. | |
unsigned char | m_shadow_map_samples |
For internal use only. | |
unsigned short | m_simple_reflection |
For internal use only. | |
int | m_simple_reflection_blur |
For internal use only. | |
float | m_simple_reflection_hither |
For internal use only. | |
float | m_simple_reflection_opacity |
For internal use only. | |
float | m_simple_reflection_plane [4] |
For internal use only. | |
int | m_simple_reflection_visibility_mask |
For internal use only. | |
int | m_simple_reflection_visibility_value |
For internal use only. | |
float | m_simple_reflection_yon |
For internal use only. | |
unsigned short | m_simple_shadow |
For internal use only. | |
unsigned char | m_simple_shadow_blur |
For internal use only. | |
float | m_simple_shadow_color [3] |
For internal use only. | |
float | m_simple_shadow_light [3] |
For internal use only. | |
float | m_simple_shadow_opacity |
float | m_simple_shadow_plane [4] |
For internal use only. | |
unsigned short | m_simple_shadow_resolution |
For internal use only. | |
char | m_sphere [8] |
For internal use only. | |
float | m_stereo_distance |
For internal use only. | |
float | m_stereo_separation |
For internal use only. | |
int | m_surface_budget |
For internal use only. | |
float | m_surface_max_facet_angle |
For internal use only. | |
float | m_surface_max_facet_deviation |
For internal use only. | |
float | m_surface_max_facet_width |
For internal use only. | |
float | m_surface_max_trim_curve_deviation |
For internal use only. | |
int | m_surface_trim_budget |
For internal use only. | |
unsigned char | m_tessellations |
For internal use only. | |
float | m_texture_tint_color [3] |
For internal use only. | |
float | m_threshold [8] |
For internal use only. | |
char | m_threshold_type |
For internal use only. | |
float | m_tint_color [3] |
For internal use only. | |
char | m_tint_effect |
For internal use only. | |
unsigned short | m_tint_options |
For internal use only. | |
float | m_tint_range [2] |
For internal use only. | |
float | m_tolerance |
For internal use only. | |
unsigned char | m_tq |
internal use; low half technology, high half quantization. For internal use only. | |
unsigned short | m_transparency_options |
internal use; low nibble style, next peeling flags, then zsort | |
int | m_value [3] |
internal use; specifies what values to set for boolean options. For internal use only. | |
float | m_vertex_decimation |
For internal use only. | |
int | m_vertex_displacement |
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 |
unsigned char | m_general_flags |
Basic flags common to many handlers. | |
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_Rendering_Options 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().