HOpcodeShell.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_SHELL
11 #define HBINFILETK_SHELL
12 
13 #include "HOpcodeHandler.h"
14 #include "BOpcodeShell.h"
15 #include "HPolyhedron.h"
16 
17 
19 
29 class HBINFILETK_API HTK_Shell : public TK_Shell {
30  protected:
32  virtual TK_Status Usefulness(BStreamFileToolkit & tk, HC_KEY key, int lod, float &score) const;
33  TK_Status Revisit(BStreamFileToolkit & tk, float priority=0.0f, int lod=-1) const;
35  TK_Status Revisit(BStreamFileToolkit & tk, int lod) const { return Revisit (tk, 0.0f, lod); }
42  TK_Status ProcessRevisits( BStreamFileToolkit & tk, int lod_in, bool *do_continue );
47  TK_Status LabelFakeEdges ();
48 
49  public:
51  TK_Status Interpret (BStreamFileToolkit & tk, ID_Key key, int variant=-1);
52  TK_Status Interpret (BStreamFileToolkit & tk, ID_Key key, char const * special)
53  { return TK_Shell::Interpret(tk, key, special); }
54  TK_Status Clone (BStreamFileToolkit & tk, BBaseOpcodeHandler **handler) const;
55  bool Match_Instance (BStreamFileToolkit const & tk, Recorded_Instance * instance);
56 
57 }; //end declaration of class TK_Shell
58 
59 
60 #endif
Handles the TKE_Shell opcode.
Definition: BOpcodeShell.h:25
void Revisit(BStreamFileToolkit &tk, float priority=0.0f, int variant=0) const
Definition: BOpcodeHandler.h:665
The BStreamFileToolkit class provides support for importing/exporting HOOPS Stream File information...
Definition: BStreamFileToolkit.h:367
Provides HOOPS/3dGS-specific handling of the TKE_Shell opcode.
Definition: HOpcodeShell.h:29
TK_Status Revisit(BStreamFileToolkit &tk, int lod) const
variant that doesn't have a priority value (which is used for sorting order)
Definition: HOpcodeShell.h:35
virtual TK_Status Interpret(BStreamFileToolkit &tk, ID_Key key, int variant=0)
virtual TK_Status Clone(BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const
Definition: BOpcodeHandler.h:216
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
virtual TK_Status Execute(BStreamFileToolkit &tk)
TK_Status Interpret(BStreamFileToolkit &tk, ID_Key key, char const *special)
Definition: HOpcodeShell.h:52
virtual bool Match_Instance(BStreamFileToolkit const &tk, Recorded_Instance *instance)