HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_DopParent.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: OP_DopParent.h ( SIM Library, C++)
7  *
8  * COMMENTS:
9  * This provides a bridge up to DOP_Parent for methods interested
10  * in the simulation status but live below SIM.
11  */
12 
13 #ifndef __OP_DopParent__
14 #define __OP_DopParent__
15 
16 #include "OP_API.h"
17 
18 #include <SYS/SYS_Types.h>
19 #include <UT/UT_VectorTypes.h>
20 
21 class OP_Node;
22 
24 {
25 public:
27  virtual OP_Node *resolve() const = 0;
28 };
29 
31 
33 {
34 public:
36  virtual ~OP_DopParent() {}
37 
38  virtual bool opGetNeedsResimulation() const = 0;
39  virtual bool opGetDisableSimulation() const = 0;
40  static OP_Node *opGetMostRecentDopOwner();
41 
42  /// Checks to see if the dop is in play mode
43  virtual bool opIsPlayer() const = 0;
44 
45  virtual void setNeedsToCompletelyReset() = 0;
46 
47  // Returns global frames, not simulation frames, rounded outwards.
48  virtual void opGetDiskCache(UT_IntArray &frames) const = 0;
49  virtual void opGetMemoryCache(UT_IntArray &frames) const = 0;
50 };
51 
52 
53 #endif // __OP_DopParent__
OP_API void OPregisterDopParentMostRecentResolver(OP_DopParentMostRecentResolver *resolver)
virtual ~OP_DopParent()
Definition: OP_DopParent.h:36
#define OP_API
Definition: OP_API.h:10