CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbViewBorder.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 OD_VIEWBORDER_H
25#define OD_VIEWBORDER_H
26
27#include "DbEntity.h"
28#include "ModelDocObjExports.h"
29
30#include "TD_PackPush.h"
31
39{
40 friend class OdDbAssocViewRepActionBody;
41 friend class OdDbImpAssocViewRepActionBody;
42 //friend class OdDbViewBorderImpl;
43 //friend class OdDbViewSymbolImpl;
44public:
46
51 virtual ~OdDbViewBorder();
52
53
58 {
59 kFromBase = 0, // The style defined by the base view.
60 kWireframeVisibleEdges = 1, // Wireframe style with visible edges only.
61 kWireframeHiddenEdges = 2, // Wireframe style with hidden edges displayed.
62 kShadedVisibleEdges = 3, // Shaded style with visible edges only.
63 kShadedHiddenEdges = 4 // Shaded style with hidden edges displayed.
64 };
65
70 {
71 kSourceNotDefined = 0, // Source type is not defined.
72 kInventorSource = 1, // Source data is from an Autodesk Inventor file.
73 kFusionSource = 2, // Source data is from an Autodesk Inventor Fusion file.
74 kModelSpaceSource = 3 // Source data is from model space.
75 };
76
81
85 double height() const;
86
90 double width() const;
91
96
105
110
119 double rotationAngle() const;
120
121
126
132 double scale() const;
133
138
144
145
150protected:
151 // OdGiDrawable methods :
152 virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
153 virtual void subHighlight(bool bDoIt = true, const OdDbFullSubentPath* pSubId = 0, bool highlightAll = false) const;
154
156 //virtual OdResult subErase(bool erasing);
157 //virtual OdResult subDeepClone(OdDbObject* pOwnerObject, OdDbObject*& pClonedObject,
158 // OdDbIdMapping& idMap, bool isPrimary = true) const;
159 //virtual OdResult subWblockClone(OdRxObject* pOwnerObject, OdDbObject*& pClonedObject,
160 // OdDbIdMapping& idMap, bool isPrimary = true) const;
161
163 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
165 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
166
167public:
168 //virtual void audit(OdDbAuditInfo* pAuditInfo);
169
170 //virtual OdResult subGetStretchPoints(OdGePoint3dArray& stretchPoints) const;
171 //virtual OdResult subMoveStretchPointsAt(const OdIntArray& indices,
172 // const OdGeVector3d& offset);
173
174 // OdDbEntity methods :
175 //virtual OdResult subGetGripPoints(OdDbGripDataPtrArray& grips,
176 // const double curViewUnitSize,
177 // const int gripSize,
178 // const OdGeVector3d& curViewDir,
179 // const int bitflags) const;
180 //virtual OdResult subGetGripPoints(OdGePoint3dArray& gripPoints,
181 // OdIntArray& osnapModes,
182 // OdIntArray& geomIds) const;
183 //virtual OdResult subMoveGripPointsAt(const OdDbVoidPtrArray& gripAppData,
184 // const OdGeVector3d& offset,
185 // const int bitflags);
186 //virtual OdResult subMoveGripPointsAt(const OdIntArray& indices,
187 // const OdGeVector3d& offset);
188 //virtual void subGripStatus(const OdDb::GripStat status);
189
190 //virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode,
191 // OdGsMarker gsSelectionMark,
192 // const OdGePoint3d& pickPoint,
193 // const OdGePoint3d& lastPoint,
194 // const OdGeMatrix3d& viewXform,
195 // OdGePoint3dArray& snapPoints,
196 // OdIntArray& geomIds) const;
197 //virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode,
198 // OdGsMarker gsSelectionMark,
199 // const OdGePoint3d& pickPoint,
200 // const OdGePoint3d& lastPoint,
201 // const OdGeMatrix3d& viewXform,
202 // OdGePoint3dArray& snapPoints,
203 // OdIntArray& geomIds,
204 // const OdGeMatrix3d& insertionMat) const;
205
206 //virtual OdResult subIntersectWith(const OdDbEntity* pEnt,
207 // OdDb::Intersect intType,
208 // const OdGePlane& projPlane,
209 // OdGePoint3dArray& points,
210 // OdGsMarker thisGsMarker = 0,
211 // OdGsMarker otherGsMarker = 0) const;
212
213 //virtual OdResult subIntersectWith(const OdDbEntity* pEnt,
214 // OdDb::Intersect intType,
215 // OdGePoint3dArray& points,
216 // OdGsMarker thisGsMarker = 0,
217 // OdGsMarker otherGsMarker = 0) const;
218
219 virtual OdResult subTransformBy(const OdGeMatrix3d& xform);
220
221 //virtual OdResult subGetClassID(CLSID* pClsid) const;
222
223 //virtual void subList() const;
224
225 //virtual void subHighlight(bool bDoIt = true,
226 // const OdDbFullSubentPath* pSubId = 0,
227 // bool highlightAll = false) const;
228
229 //virtual OdResult subGetSubentPathsAtGsMarker(OdDb::SubentType type,
230 // OdGsMarker gsMark,
231 // const OdGePoint3d& pickPoint,
232 // const OdGeMatrix3d& viewXform,
233 // int& numPaths,
234 // OdDbFullSubentPath*& subentPaths,
235 // int numInserts = 0,
236 // OdDbObjectId* entAndInsertStack = NULL) const;
237
238 //virtual OdResult subGetGsMarkersAtSubentPath(const OdDbFullSubentPath* pSubPath,
239 // OdArray<OdGsMarker>& gsMarkers) const;
240
241 //virtual OdResult subGetSubentClassId(const OdDbFullSubentPath* pSubPath, CLSID* clsId) const;
242
243 //virtual void saveAs(OdGiWorldDraw* mode, OdDb::SaveType st);
244
245 //virtual OdResult setLayer(const OdString& newVal,
246 // bool doSubents = true,
247 // bool allowHiddenLayer = false);
248 //virtual OdResult setLayer(OdDbObjectId newVal,
249 // bool doSubents = true,
250 // bool allowHiddenLayer = false);
251
252public:
253 // Internal use only methods:
254 //OdResult setViewportId(const OdDbObjectId& viewportId);
255 OdGePoint2d centerPoint(bool exludeSketchEnts = true) const;
256 OdGePoint3d centerPoint3d(bool exludeSketchEnts = true) const;
258 OdResult setSize(const OdGePoint3d& minPt, const OdGePoint3d& maxPt);
259 void setScale(double newScale);
260 //OdResult recalculateBorder();
261
262 //void setTransientEnts(const OdArray<OdDbEntity*>& traientEnts);
263 //void setDisableUnHighlight(bool bIsDisable);
264 //bool hitTest(const OdGePoint3d& inputPt) const;
265
266 // Internal use only methods: subentity related methods
267 //OdResult getSubentColor(const OdDbSubentId& subentId, OdCmColor& color) const;
268 //OdResult setSubentColor(const OdDbSubentId& subentId, const OdCmColor& color);
269
270 //OdResult getSubentLayerId(const OdDbSubentId& subentId, OdDbObjectId& layerId) const;
271 //OdResult setSubentLayer(const OdDbSubentId& subentId, OdDbObjectId newVal);
272
273 //OdResult getSubentLinetypeId(const OdDbSubentId& subentId, OdDbObjectId& linetypeId) const;
274 //OdResult setSubentLinetype(const OdDbSubentId& subentId, OdDbObjectId newVal);
275
276 //OdResult getSubentLinetypeScale(const OdDbSubentId& subentId, double& linetypeScale) const;
277 //OdResult setSubentLinetypeScale(const OdDbSubentId& subentId, double newVal);
278
279 //const OdString& getSubentPlotStyleName(const OdDbSubentId& subentId) const;
280 //OdResult setSubentPlotStyleName(const OdDbSubentId& subentId, const OdString& newName);
281
282 //OdResult getSubentLineWeight(const OdDbSubentId& subentId, OdDb::LineWeight& lineweight) const;
283 //OdResult setSubentLineWeight(const OdDbSubentId& subentId, OdDb::LineWeight newVal);
284
285 //OdResult getSubentVisibility(const OdDbSubentId& subentId, OdDb::Visibility& visVal) const;
286 //OdResult setSubentVisibility(const OdDbSubentId& subentId, OdDb::Visibility newVal);
287
288 //OdResult subentIdToNestedEnts(const OdDbSubentId& subentId, OdDbFullSubentPathArray &nestedEnts) const;
289
290 protected:
291
293 void setScaleId( const OdDbObjectId scaleId );
294
295//private:
296// OdGeMatrix3d transientXform() const;
297
298//private:
299// static double sViewBoderOffset;
300};
301
306
307#include "TD_PackPop.h"
308
309#endif // OD_VIEWBORDER_H
OdSmartPtr< OdDbViewBorder > OdDbViewBorderPtr
Definition: DbViewBorder.h:305
#define MODELDOCOBJ_EXPORT
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdResult subTransformBy(const OdGeMatrix3d &xform)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
double scale() const
void setScaleId(const OdDbObjectId scaleId)
OdGePoint3d insertionPoint() const
OdDbViewBorder::SourceType sourceType() const
OdDbObjectId getScaleId() const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
void setScale(double newScale)
OdResult setViewportId(const OdDbObjectId &viewportId)
OdGePoint3d centerPoint3d(bool exludeSketchEnts=true) const
OdGePoint2d centerPoint(bool exludeSketchEnts=true) const
double height() const
virtual void subHighlight(bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
OdDbObjectId viewportId() const
double width() const
double rotationAngle() const
OdResult setSize(const OdGePoint3d &minPt, const OdGePoint3d &maxPt)
OdDbViewBorder::ViewStyleType viewStyleType() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
ODDB_DECLARE_MEMBERS(OdDbViewBorder)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdUInt32 shadedDPI() const
bool isFirstAngleProjection() const
OdString inventorFileReference() const
virtual ~OdDbViewBorder()
OdResult getSize(OdGePoint3d &minPt, OdGePoint3d &maxPt) const
OdDbObjectId lookupViewRepId() const