13 #ifndef BBINFILETK_TOOLKIT
14 #include "BStreamFileToolkit.h"
52 float m_dtemprange[2];
124 TK_Status SetPoints (
int point_count,
float const points[] = 0);
130 TK_Status SetDPoints (
int point_count,
double const points[] = 0);
138 TK_Status SetLengths (
int primitive_count,
int const lengths[] = 0);
143 TKPP_COMPRESSED = 0x0001,
144 TKPP_HAS_EXPLICIT_PRIMITIVE_COUNT = 0x0002,
145 TKPP_ONE_PRIMITIVE_ONLY = 0x0004,
146 TKPP_GLOBAL_QUANTIZATION = 0x0008,
148 TKPP_ZERO_X = 0x0100,
149 TKPP_SAME_X = 0x0200,
150 TKPP_PER_PRIMITIVE_X = 0x0300,
151 TKPP_ZERO_Y = 0x0400,
152 TKPP_SAME_Y = 0x0800,
153 TKPP_PER_PRIMITIVE_Y = 0x0C00,
154 TKPP_ZERO_Z = 0x1000,
155 TKPP_SAME_Z = 0x2000,
156 TKPP_PER_PRIMITIVE_Z = 0x3000,
157 TKPP_EXPANDED = 0x8000
159 #define TKPP_X_2D_MASK 0x0300
160 #define TKPP_Y_2D_MASK 0x0C00
161 #define TKPP_Z_2D_MASK 0x3000
162 #define TKPP_ANY_2D_MASK 0x3F00
163 #define TKPP_EXPLICIT_PRIMITIVE_MASK 0x0006
int m_lengths_allocated
The number of array elements that we have allocated for primitive lengths.
Definition: BPolyPoly.h:46
int m_substage
tracks progress during helper functions
Definition: BPolyPoly.h:59
float * m_points
The points array.
Definition: BPolyPoly.h:41
int m_templen
the length of all stragglers left behind (e.g. an array of floats of length m_primitive_count if TKPP...
Definition: BPolyPoly.h:50
virtual TK_Status Read(BStreamFileToolkit &tk)=0
int m_points_num_dimensions
The number of unrestricted dimensions in the points array that must be completely specified...
Definition: BPolyPoly.h:44
unsigned char m_compression_scheme
If the TKPP_COMPRESSED bit is set in m_subop, this variable tracks the specific compression algorithm...
Definition: BPolyPoly.h:54
double * m_dpoints
The points array.
Definition: BPolyPoly.h:42
int m_points_num_floats
The number of independent floating point values required to specify the points array (equals m_point_...
Definition: BPolyPoly.h:43
unsigned char * m_workspace
Raw data after packing.
Definition: BPolyPoly.h:55
int m_points_allocated
The number of points for which we have allocated space (to save time, we only reallocate the points a...
Definition: BPolyPoly.h:40
unsigned short m_subop
Suboptions. Among other things, it specifies all 2d restrictions that can be made on the points...
Definition: BPolyPoly.h:53
int m_workspace_used
The amount of workspace area used.
Definition: BPolyPoly.h:56
The BBaseOpcodeHandler abstract class is used as a base for derived classes which manage logical piec...
Definition: BOpcodeHandler.h:55
TK_Status
Codes which can be either passed to various toolkit functions, or indicate the result of a toolkit fu...
Definition: BStream.h:257
int * m_lengths
The length of each primitive.
Definition: BPolyPoly.h:47
int m_point_count
The number of points.
Definition: BPolyPoly.h:39
virtual TK_Status Clone(BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const
Definition: BOpcodeHandler.h:217
int m_primitive_count
The number of primitives. Omitted from read/write (it can be deduced from the lengths array) unless T...
Definition: BPolyPoly.h:45
int m_bits_per_sample
the number of bits per sample. Should be tk.GetNumVertexBits()/3
Definition: BPolyPoly.h:58
int m_workspace_allocated
The amount of workspace area allocated.
Definition: BPolyPoly.h:57
virtual TK_Status Execute(BStreamFileToolkit &tk)
Handles the TKE_PolyPolyline opcode.
Definition: BPolyPoly.h:37
Suboptions
Definition: BPolyPoly.h:142
virtual TK_Status Write(BStreamFileToolkit &tk)=0