CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GiTransientManager.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
33class OdGiDrawable;
34
41{
42 public:
44
51 {
53 kOdGiMain = 0,
65 kOdGiDrawingModeCount
66 };
67
80 virtual bool addTransient(OdGiDrawable *pDrawable,
82 OdInt32 subMode,
83 const OdUInt32Array &viewportIds) = 0;
84
94 virtual bool eraseTransient(OdGiDrawable *pDrawable,
95 const OdUInt32Array &viewportIds) = 0;
96
108 OdInt32 subMode,
109 const OdUInt32Array &viewportIds) = 0;
110
116 virtual void updateTransient(OdGiDrawable *pDrawable,
117 const OdUInt32Array &viewportIds) const = 0;
118
126 virtual bool addChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent) = 0;
127
135 virtual bool eraseChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent) = 0;
136
142 virtual void updateChildTransient(OdGiDrawable *pDrawable, OdGiDrawable *pParent) const = 0;
143
155 OdInt32 &subMode,
156 const OdUInt32Array &viewportIds) const = 0;
157};
158
163
175
182{
183 public:
185
190 virtual OdGiTransientManager *transientManager(const OdRxObject *pThis) const = 0;
196 virtual void setTransientManager(OdRxObject *pThis, OdGiTransientManager *pManager) = 0;
197};
198
203
204#include "TD_PackPop.h"
205
206#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