CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
GsBaseModelReactor.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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 __ODGSBASEMODELREACTOR_H__
25#define __ODGSBASEMODELREACTOR_H__
26
27#include "TD_PackPush.h"
28
29#include "Gs/GsModel.h"
30
31class OdGsNode;
32
40{
41 public:
53 virtual bool onHighlight(OdGsModel *pModel, const OdGiPathNode& path, bool bDoIt, OdUInt32 &nStyle, const OdGsView* pView) { return true; }
67 virtual bool onHighlight(OdGsModel *pModel, const OdGiPathNode& path, const OdGsMarker* pMarkers, OdUInt32 nMarkers, bool bDoIt,
68 OdUInt32 &nStyle, const OdGsView* pView) { return true; }
69
80 virtual bool onHide(OdGsModel *pModel, OdGsNode *pNode, bool &bHidden, bool &bSelectable, const OdGsView* pView) { return true; }
93 virtual bool onHide(OdGsModel *pModel, const OdGiPathNode& path, const OdGsMarker* pMarkers, OdUInt32 nMarkers,
94 bool& bHidden, bool &bSelectable, const OdGsView* pView) { return true; }
95
106 virtual bool onExternalTransform(OdGsModel *pModel, const OdGiPathNode &path, bool bDoIt, const OdGsMatrixParamPtr &xForm,
107 const OdGsView* pView) { return true; }
108
120 virtual bool onExternalTransform(OdGsModel *pModel, const OdGiPathNode& path, const OdGsMarker* pMarkers, OdUInt32 nMarkers,
121 bool bDoIt, const OdGsMatrixParamPtr &xForm, const OdGsView* pView) { return true; }
122
131 virtual bool onInvalidate(OdGsModel *pModel, OdGsModel::InvalidationHint hint) { return true; }
140 virtual bool onInvalidate(OdGsModel *pModel, OdGsView* pView) { return true; }
141
146 {
147 kModelTransform = 0, // GsModel transformation matrix.
148 kModelRenderType, // GsModel render type override.
149 kModelBackground, // GsModel background.
150 kModelVisualStyle, // GsModel visual style override.
151 kModelSectioning, // GsModel sectioning data.
152
153 kNumModelProps // Number of handled GsModel properties.
154 };
155
162 virtual bool onPropertyModified(OdGsModel *pModel, ModelProperty nProp) { return true; }
163};
164
165#include "TD_PackPop.h"
166
167#endif // __ODGSBASEMODELREACTOR_H__
OdSmartPtr< OdGsMatrixParam > OdGsMatrixParamPtr
ptrdiff_t OdGsMarker
unsigned int OdUInt32
virtual bool onHide(OdGsModel *pModel, OdGsNode *pNode, bool &bHidden, bool &bSelectable, const OdGsView *pView)
virtual bool onPropertyModified(OdGsModel *pModel, ModelProperty nProp)
virtual bool onHide(OdGsModel *pModel, const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool &bHidden, bool &bSelectable, const OdGsView *pView)
virtual bool onExternalTransform(OdGsModel *pModel, const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt, const OdGsMatrixParamPtr &xForm, const OdGsView *pView)
virtual bool onHighlight(OdGsModel *pModel, const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt, OdUInt32 &nStyle, const OdGsView *pView)
virtual bool onExternalTransform(OdGsModel *pModel, const OdGiPathNode &path, bool bDoIt, const OdGsMatrixParamPtr &xForm, const OdGsView *pView)
virtual bool onInvalidate(OdGsModel *pModel, OdGsModel::InvalidationHint hint)
virtual bool onHighlight(OdGsModel *pModel, const OdGiPathNode &path, bool bDoIt, OdUInt32 &nStyle, const OdGsView *pView)
virtual bool onInvalidate(OdGsModel *pModel, OdGsView *pView)
InvalidationHint
Definition GsModel.h:170
Definition Gs.h:141