HPolyPoly.h
1 // Copyright (c) Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #ifndef HBINFILETK_POLYPOLY
11 #define HBINFILETK_POLYPOLY
12 
13 #include "HOpcodeHandler.h"
14 #include "BPolyPoly.h"
15 
16 
18 
34 class HBINFILETK_API HTK_PolyPolypoint : public TK_PolyPolypoint {
35  protected:
37  HC_KEY * m_keys;
38  public:
40  HTK_PolyPolypoint(unsigned char op) : TK_PolyPolypoint(op) {
41  m_keys = 0;
42  };
44  Reset();
45  };
46 
48  TK_Status Interpret (BStreamFileToolkit & tk, ID_Key key, int variant=-1);
49  TK_Status Interpret (BStreamFileToolkit & tk, ID_Key key, char const * special)
50  { return TK_PolyPolypoint::Interpret(tk, key, special); }
51  TK_Status Clone (BStreamFileToolkit & tk, BBaseOpcodeHandler **handler) const;
52  void Reset () {
53  delete[] m_keys;
54  m_keys = 0;
56  }
57 };
58 
59 
60 
61 #endif
Provides HOOPS/3dGS-specific handling of the TKE_Polyline and TKE_Line opcodes.
Definition: HPolyPoly.h:34
The BStreamFileToolkit class provides support for importing/exporting HOOPS Stream File information...
Definition: BStreamFileToolkit.h:367
HC_KEY * m_keys
list of entities keys
Definition: HPolyPoly.h:37
TK_Status Clone(BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const
virtual TK_Status Interpret(BStreamFileToolkit &tk, ID_Key key, int variant=0)
TK_Status Execute(BStreamFileToolkit &tk)
TK_Status Interpret(BStreamFileToolkit &tk, ID_Key key, char const *special)
Definition: HPolyPoly.h:49
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:274
#define ID_Key
Definition: BStream.h:250
HTK_PolyPolypoint(unsigned char op)
Definition: HPolyPoly.h:40
void Reset()
Definition: HPolyPoly.h:52
Handles the TKE_PolyPolyline opcode.
Definition: BPolyPoly.h:37