Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HPolyhedron.h
1 // Copyright (c) Tech Soft 3D
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_POLYHEDRON
11 #define HBINFILETK_POLYHEDRON
12 
13 #include "BPolyhedron.h"
14 
23 class HBINFILETK_API HTK_Polyhedron : public TK_Polyhedron {
24  private:
27  TK_Status Interpret (BStreamFileToolkit & tk, ID_Key key, int variant=0);
28  TK_Status Interpret (BStreamFileToolkit & tk, ID_Key key, char const * special)
29  { return TK_Polyhedron::Interpret(tk, key, special); }
30 
31 
32  public:
34  TK_Status HExecute (BStreamFileToolkit & tk, int mesh_columns = 0);
36  TK_Status HInterpret (BStreamFileToolkit & tk, HC_KEY key, int lod=0, int mesh_columns=0);
37 
39  bool match_points (Recorded_Instance const * instance, float const instance_points[]);
41  bool match_attributes (Recorded_Instance const * instance);
42 };
43 
44 
46 
56 class HBINFILETK_API HTK_Mesh : public TK_Mesh {
57  public:
59  TK_Status Interpret (BStreamFileToolkit & tk, ID_Key key, int variant=0);
60  TK_Status Interpret (BStreamFileToolkit & tk, ID_Key key, char const * special)
61  { return TK_Mesh::Interpret(tk, key, special); }
62  TK_Status Clone (BStreamFileToolkit & tk, BBaseOpcodeHandler **handler) const;
63  bool Match_Instance (BStreamFileToolkit const & tk, Recorded_Instance * instance);
64 };
65 
66 #endif
67 
68 
Definition: HPolyhedron.h:23
The BStreamFileToolkit class provides support for importing/exporting HOOPS Stream File information...
Definition: BStreamFileToolkit.h:367
#define HC_KEY
Provides HOOPS/3dGS-specific handling of the TKE_Mesh opcode.
Definition: HPolyhedron.h:56
virtual TK_Status Interpret(BStreamFileToolkit &tk, ID_Key key, int variant=0)
Handles the TKE_Mesh opcode.
Definition: BPolyhedron.h:1070
TK_Status Interpret(BStreamFileToolkit &tk, ID_Key key, char const *special)
Definition: HPolyhedron.h:60
The BBaseOpcodeHandler abstract class is used as a base for derived classes which manage logical piec...
Definition: BOpcodeHandler.h:53
TK_Status
Codes which can be either passed to various toolkit functions, or indicate the result of a toolkit fu...
Definition: BStream.h:254
#define ID_Key
Definition: BStream.h:230
Base class for shell and mesh.
Definition: BPolyhedron.h:22
virtual TK_Status Clone(BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const
Definition: BOpcodeHandler.h:205
virtual TK_Status Execute(BStreamFileToolkit &tk)
virtual bool Match_Instance(BStreamFileToolkit const &tk, Recorded_Instance *instance)