CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbEntityOverrule.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 _DBENTITYOVRRULE_H_INCLUDED_
25#define _DBENTITYOVRRULE_H_INCLUDED_
26
27#include "RxOverrule.h"
28#include "DbEntity.h"
29
39{
40public:
42
47
61 const OdDbEntity* pSubject,
62 OdDb::OsnapMode osnapMode,
63 OdGsMarker gsSelectionMark,
64 const OdGePoint3d& pickPoint,
65 const OdGePoint3d& lastPoint,
66 const OdGeMatrix3d& xWorldToEye,
67 OdGePoint3dArray& snapPoints );
68
83 const OdDbEntity* pSubject,
84 OdDb::OsnapMode osnapMode,
85 OdGsMarker gsSelectionMark,
86 const OdGePoint3d& pickPoint,
87 const OdGePoint3d& lastPoint,
88 const OdGeMatrix3d& xWorldToEye,
89 OdGePoint3dArray& snapPoints,
90 const OdGeMatrix3d& insertionMat);
91
102 virtual bool isContentSnappable(const OdDbEntity* pSubject);
103};
104
114{
115public:
117
122
130 virtual OdResult transformBy(OdDbEntity* pSubject, const OdGeMatrix3d& xform);
131
140 virtual OdResult getTransformedCopy(const OdDbEntity* pSubject, const OdGeMatrix3d& xform, OdDbEntityPtr& pEnt);
141
150 virtual OdResult explode(const OdDbEntity* pSubject, OdRxObjectPtrArray& entitySet);
151
158 virtual bool cloneMeForDragging(OdDbEntity* pSubject);
159
167 virtual bool hideMeForDragging(const OdDbEntity* pSubject);
168};
169
179{
180public:
182
187
195 virtual OdResult getGripPoints( const OdDbEntity* pSubject, OdGePoint3dArray& gripPoints );
196
208 virtual OdResult getGripPoints(const OdDbEntity* pSubject,
209 OdDbGripDataPtrArray& gripsData,
210 const double curViewUnitSize,
211 const int gripSize,
212 const OdGeVector3d& curViewDir,
213 const int bitFlags );
214
225 const OdIntArray& indices,
226 const OdGeVector3d& offset );
227
238 const OdDbVoidPtrArray& grips,
239 const OdGeVector3d& offset,
240 int bitFlags );
241
249 virtual OdResult getStretchPoints(const OdDbEntity* pSubject,
250 OdGePoint3dArray& stretchPoints);
251
260 const OdIntArray & indices,
261 const OdGeVector3d& offset);
262
269 virtual void gripStatus(OdDbEntity* pSubject, const OdDb::GripStat status);
270};
271
281{
282public:
284
289
298
307
317 const OdDbFullSubentPathArray& paths,
318 const OdGeMatrix3d& xform);
319
333 const OdDbEntity* pSubject,
334 const OdDbFullSubentPath& path,
336 const double curViewUnitSize,
337 const int gripSize,
338 const OdGeVector3d& curViewDir,
339 const OdUInt32 bitflags);
340
352 OdDbEntity* pSubject,
353 const OdDbFullSubentPathArray& paths,
354 const OdDbVoidPtrArray& gripAppData,
355 const OdGeVector3d& offset,
356 const OdUInt32 bitflags);
357
371 const OdDbEntity* pSubject,
373 OdGsMarker gsMark,
374 const OdGePoint3d& pickPoint,
375 const OdGeMatrix3d& viewXform,
376 OdDbFullSubentPathArray& subentPaths,
377 const OdDbObjectIdArray* pEntAndInsertStack = 0);
378
388 const OdDbEntity* pSubject,
389 const OdDbFullSubentPath& subPath,
390 OdGsMarkerArray& gsMarkers);
391
399 virtual OdDbEntityPtr subentPtr(const OdDbEntity* pSubject, const OdDbFullSubentPath& id);
400
409
419 const OdDbFullSubentPath& path,
420 OdGeExtents3d& extents);
421
430 virtual void subentGripStatus(OdDbEntity* pSubject,
431 OdDb::GripStat status,
432 const OdDbFullSubentPath& subentity);
433
442 virtual OdResult getSubentClassId(const OdDbEntity* pSubject,
443 const OdDbFullSubentPath& path,
444 void* clsId);
445};
446
456{
457public:
459
464
473 virtual void highlight(const OdDbEntity* pSubject, bool bDoIt = true, const OdDbFullSubentPath* pSubId = 0,
474 bool highlightAll = false);
475};
476
486{
487public:
489
494
501 virtual OdDb::Visibility visibility(const OdDbEntity* pSubject);
502
511 virtual OdResult setVisibility(OdDbEntity* pSubject, OdDb::Visibility visibility, bool doSubents = true);
512};
513
523{
524public:
526
531
543 virtual OdResult intersectWith(const OdDbEntity* pThisEnt,
544 const OdDbEntity* pEnt, OdDb::Intersect intType,
545 OdGePoint3dArray& points, OdGsMarker thisGsMarker = 0,
546 OdGsMarker otherGsMarker = 0);
559 virtual OdResult intersectWith(const OdDbEntity* pThisEnt,
560 const OdDbEntity* pEnt, OdDb::Intersect intType,
561 const OdGePlane& projPlane, OdGePoint3dArray& points,
562 OdGsMarker thisGsMarker = 0, OdGsMarker otherGsMarker = 0);
563
571 virtual OdResult getGeomExtents(const OdDbEntity* pSubject, OdGeExtents3d& extents);
572};
573
574#endif //_DBENTITYOVRRULE_H_INCLUDED_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ptrdiff_t OdGsMarker
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
virtual OdResult intersectWith(const OdDbEntity *pThisEnt, const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0)
virtual OdResult intersectWith(const OdDbEntity *pThisEnt, const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0)
ODRX_DECLARE_MEMBERS(OdDbGeometryOverrule)
virtual OdResult getGeomExtents(const OdDbEntity *pSubject, OdGeExtents3d &extents)
virtual OdResult moveGripPointsAt(OdDbEntity *pSubject, const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags)
virtual OdResult getGripPoints(const OdDbEntity *pSubject, OdGePoint3dArray &gripPoints)
virtual void gripStatus(OdDbEntity *pSubject, const OdDb::GripStat status)
virtual OdResult getStretchPoints(const OdDbEntity *pSubject, OdGePoint3dArray &stretchPoints)
virtual OdResult moveStretchPointsAt(OdDbEntity *pSubject, const OdIntArray &indices, const OdGeVector3d &offset)
ODRX_DECLARE_MEMBERS(OdDbGripOverrule)
virtual OdResult getGripPoints(const OdDbEntity *pSubject, OdDbGripDataPtrArray &gripsData, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags)
virtual OdResult moveGripPointsAt(OdDbEntity *pSubject, const OdIntArray &indices, const OdGeVector3d &offset)
virtual void highlight(const OdDbEntity *pSubject, bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false)
ODRX_DECLARE_MEMBERS(OdDbHighlightOverrule)
virtual OdResult getOsnapPoints(const OdDbEntity *pSubject, OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat)
virtual bool isContentSnappable(const OdDbEntity *pSubject)
virtual OdResult getOsnapPoints(const OdDbEntity *pSubject, OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints)
ODRX_DECLARE_MEMBERS(OdDbOsnapOverrule)
virtual OdResult transformSubentPathsBy(OdDbEntity *pSubject, const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform)
virtual OdResult getSubentPathGeomExtents(const OdDbEntity *pSubject, const OdDbFullSubentPath &path, OdGeExtents3d &extents)
ODRX_DECLARE_MEMBERS(OdDbSubentityOverrule)
virtual OdResult addSubentPaths(OdDbEntity *pSubject, const OdDbFullSubentPathArray &paths)
virtual OdResult getGsMarkersAtSubentPath(const OdDbEntity *pSubject, const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers)
virtual OdResult getSubentClassId(const OdDbEntity *pSubject, const OdDbFullSubentPath &path, void *clsId)
virtual void subentGripStatus(OdDbEntity *pSubject, OdDb::GripStat status, const OdDbFullSubentPath &subentity)
virtual OdResult deleteSubentPaths(OdDbEntity *pSubject, const OdDbFullSubentPathArray &paths)
virtual OdResult getGripPointsAtSubentPath(const OdDbEntity *pSubject, const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags)
virtual OdResult getCompoundObjectTransform(const OdDbEntity *pSubject, OdGeMatrix3d &xMat)
virtual OdDbEntityPtr subentPtr(const OdDbEntity *pSubject, const OdDbFullSubentPath &id)
virtual OdResult getSubentPathsAtGsMarker(const OdDbEntity *pSubject, OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &viewXform, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0)
virtual OdResult moveGripPointsAtSubentPaths(OdDbEntity *pSubject, const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags)
virtual OdResult transformBy(OdDbEntity *pSubject, const OdGeMatrix3d &xform)
virtual OdResult getTransformedCopy(const OdDbEntity *pSubject, const OdGeMatrix3d &xform, OdDbEntityPtr &pEnt)
virtual OdResult explode(const OdDbEntity *pSubject, OdRxObjectPtrArray &entitySet)
virtual bool hideMeForDragging(const OdDbEntity *pSubject)
ODRX_DECLARE_MEMBERS(OdDbTransformOverrule)
virtual bool cloneMeForDragging(OdDbEntity *pSubject)
ODRX_DECLARE_MEMBERS(OdDbVisibilityOverrule)
virtual OdResult setVisibility(OdDbEntity *pSubject, OdDb::Visibility visibility, bool doSubents=true)
virtual OdDb::Visibility visibility(const OdDbEntity *pSubject)
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
GLintptr offset
Definition: gles2_ext.h:183
GripStat
Definition: DbGrip.h:112
Intersect
Definition: OdaDefs.h:481
OsnapMode
Definition: OdaDefs.h:489
Visibility
Definition: DbObject.h:146