CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GsBaseModelReactor.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 __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; }
54
68 virtual bool onHighlight(OdGsModel *pModel, const OdGiPathNode& path, const OdGsMarker* pMarkers, OdUInt32 nMarkers, bool bDoIt,
69 OdUInt32 &nStyle, const OdGsView* pView) { return true; }
70
71
80 virtual bool onInvalidate(OdGsModel *pModel, OdGsModel::InvalidationHint hint) { return true; }
81
90 virtual bool onInvalidate(OdGsModel *pModel, OdGsView* pView) { return true; }
91
102 virtual bool onHide(OdGsModel *pModel, OdGsNode *pNode, bool &bHidden, bool &bSelectable, const OdGsView* pView) { return true; }
115 virtual bool onHide(OdGsModel *pModel, const OdGiPathNode& path, const OdGsMarker* pMarkers, OdUInt32 nMarkers,
116 bool& bHidden, bool &bSelectable, const OdGsView* pView) { return true; }
117
122 {
123 kModelTransform = 0, // GsModel transformation matrix.
124 kModelRenderType, // GsModel render type override.
125 kModelBackground, // GsModel background.
126 kModelVisualStyle, // GsModel visual style override.
127 kModelSectioning, // GsModel sectioning data.
128
129 kNumModelProps // Number of handled GsModel properties.
130 };
138 virtual bool onPropertyModified(OdGsModel *pModel, ModelProperty nProp) { return true; }
139};
140
141#include "TD_PackPop.h"
142
143#endif // __ODGSBASEMODELREACTOR_H__
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 onHighlight(OdGsModel *pModel, const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt, OdUInt32 &nStyle, 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:168
Definition: Gs.h:140