CFx SDK Documentation  2023 SP0
GiTransientManager.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef __ODGITRANSIENTMANAGER_H__
25 #define __ODGITRANSIENTMANAGER_H__
26 
27 #include <RxObject.h>
28 #include <Gi/GiExport.h>
29 #include <UInt32Array.h>
30 
31 #include "TD_PackPush.h"
32 
33 class OdGiDrawable;
34 
41 {
42  public:
44 
46  {
47  kOdGiMain = 0,
53  kOdGiDrawingModeCount
54  };
55 
63  virtual bool addTransient(OdGiDrawable *pDrawable,
65  OdInt32 subMode,
66  const OdUInt32Array &viewportIds) = 0;
67 
73  virtual bool eraseTransient(OdGiDrawable *pDrawable,
74  const OdUInt32Array &viewportIds) = 0;
75 
83  OdInt32 subMode,
84  const OdUInt32Array &viewportIds) = 0;
85 
91  virtual void updateTransient(OdGiDrawable *pDrawable,
92  const OdUInt32Array &viewportIds) const = 0;
93 
99  virtual bool addChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent) = 0;
100 
106  virtual bool eraseChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent) = 0;
107 
113  virtual void updateChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent) const = 0;
114 
126  OdInt32 &subMode,
127  const OdUInt32Array &viewportIds) const = 0;
128 };
129 
134 
143 
150 {
151  public:
153 
158  virtual OdGiTransientManager *transientManager(const OdRxObject *pThis) const = 0;
164  virtual void setTransientManager(OdRxObject *pThis, OdGiTransientManager *pManager) = 0;
165 };
166 
171 
172 #include "TD_PackPop.h"
173 
174 #endif // __ODGITRANSIENTMANAGER_H__
#define ODGI_EXPORT
Definition: GiExport.h:35
ODGI_EXPORT OdGiTransientManager * odgiGetTransientManager(const OdRxObject *pObject)
OdSmartPtr< OdGiTransientManagerPE > OdGiTransientManagerPEPtr
ODGI_EXPORT void odgiSetTransientManager(OdGiTransientManager *pManager, OdRxObject *pObject)
OdSmartPtr< OdGiTransientManager > OdGiTransientManagerPtr
int OdInt32
ODRX_DECLARE_MEMBERS(OdGiTransientManager)
virtual bool addChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent)=0
virtual bool eraseChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent)=0
virtual OdInt32 getFreeSubDrawingMode(OdGiTransientDrawingMode mode, OdInt32 &subMode, const OdUInt32Array &viewportIds) const =0
virtual bool eraseTransients(OdGiTransientDrawingMode mode, OdInt32 subMode, const OdUInt32Array &viewportIds)=0
virtual void updateTransient(OdGiDrawable *pDrawable, const OdUInt32Array &viewportIds) const =0
virtual bool eraseTransient(OdGiDrawable *pDrawable, const OdUInt32Array &viewportIds)=0
virtual void updateChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent) const =0
virtual bool addTransient(OdGiDrawable *pDrawable, OdGiTransientDrawingMode mode, OdInt32 subMode, const OdUInt32Array &viewportIds)=0
virtual OdGiTransientManager * transientManager(const OdRxObject *pThis) const =0
ODRX_DECLARE_MEMBERS(OdGiTransientManagerPE)
virtual void setTransientManager(OdRxObject *pThis, OdGiTransientManager *pManager)=0