CFx SDK Documentation  2022 SP0
FxDbDrawingViewPE.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "DbBlockReference.h"
6 
8 {
9 public:
11  virtual OdGePoint3d insertionPoint( const OdDbEntityPtr pEntity ) const = 0;
12  virtual double height( const OdDbEntityPtr pEntity ) const = 0;
13  virtual double width( const OdDbEntityPtr pEntity ) const = 0;
14  virtual OdDbViewBorder::SourceType sourceType( const OdDbEntityPtr pEntity ) const = 0;
15  virtual OdString inventorFileReference( const OdDbEntityPtr pEntity ) const = 0;
16  virtual bool isFirstAngleProjection( const OdDbEntityPtr pEntity ) const = 0;
17  virtual double rotationAngle( const OdDbEntityPtr pEntity ) const = 0;
18  virtual OdDbViewBorder::ViewStyleType viewStyleType( const OdDbEntityPtr pEntity ) const = 0;
19  virtual double scale( const OdDbEntityPtr pEntity ) const = 0;
20  virtual OdUInt32 shadedDPI( const OdDbEntityPtr pEntity ) const = 0;
21  virtual OdDbObjectId viewportId( const OdDbEntityPtr pEntity ) const = 0;
22  virtual OdResult setViewportId( OdDbEntityPtr pEntity, const OdDbObjectId& viewportId ) = 0;
23  virtual OdGePoint2d centerPoint( const OdDbEntityPtr pEntity, bool exludeSketchEnts = true ) const = 0;
24  virtual OdGePoint3d centerPoint3d( const OdDbEntityPtr pEntity, bool exludeSketchEnts = true ) const = 0;
25  virtual OdResult getSize( const OdDbEntityPtr pEntity, OdGePoint3d& minPt, OdGePoint3d& maxPt ) const = 0;
26  virtual OdResult setSize( OdDbEntityPtr pEntity, const OdGePoint3d& minPt, const OdGePoint3d& maxPt ) = 0;
27  virtual void setScale( OdDbEntityPtr pEntity, double newScale ) = 0;
28 };
30 
31 
33 {
34 public:
36  virtual OdResult sketchModelSpaceToModelSpaceXform( const OdDbObjectPtr pObject, OdGeMatrix3d &mat ) const = 0;
37  virtual OdResult sketchModelSpaceToPaperSpaceXform( const OdDbObjectPtr pObject, OdGeMatrix3d &mat ) const = 0;
38 
39  virtual OdResult viewModelSpaceToModelSpaceXform( const OdDbObjectPtr pObject, OdGeMatrix3d &mat ) const = 0;
40  virtual OdResult viewModelSpaceToPaperSpaceXform( const OdDbObjectPtr pObject, OdGeMatrix3d &mat ) const = 0;
41 
42  virtual OdDbObjectId selSetObjId( const OdDbObjectPtr pObject ) const = 0;
43  virtual bool isPartialMSView( const OdDbObjectPtr pObject ) const = 0;
44  virtual unsigned long viewIndex( const OdDbObjectPtr pObject ) const = 0;
45 
46  virtual void setInventorDrawingViewId( OdDbObjectPtr pObject, OdUInt64 invDVid ) = 0;
47  virtual OdUInt64 inventorDrawingViewId( const OdDbObjectPtr pObject ) const = 0;
48  virtual OdDbObjectId layoutId( const OdDbObjectPtr pObject ) const = 0;
49 
50  //virtual const class OdRxSketchManager* getSketchManager( const OdDbObjectPtr pObject ) const = 0;
51  //virtual OdRxSketchManager* getSketchManager( const OdDbObjectPtr pObject );
52 
53  virtual OdDbObjectId viewBlockReference( const OdDbObjectPtr pObject ) const = 0;
54  virtual OdDbObjectId blockReference( const OdDbObjectPtr pObject ) const = 0;
55  virtual OdDbObjectId viewBorderId( const OdDbObjectPtr pObject ) const = 0;
56  virtual OdDbObjectId viewportId( const OdDbObjectPtr pObject ) const = 0;
57 
58  virtual OdDbViewRep::SourceType sourceType( const OdDbObjectPtr pObject ) = 0;
59  virtual const OdString& label( const OdDbObjectPtr pObject ) = 0;
60  virtual bool labelVisibility( const OdDbObjectPtr pObject ) = 0;
61  virtual double scale( const OdDbObjectPtr pObject ) = 0;
62 
63  virtual bool isShaded( const OdDbObjectPtr pObject ) = 0;
64  virtual enum OdDbViewRep::ViewStyleType viewStyleType( const OdDbObjectPtr pObject ) = 0;
65  virtual OdDbViewRep::ViewType viewType( const OdDbObjectPtr pObject ) = 0;
66  virtual void camera( const OdDbObjectPtr pObject, OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector ) = 0;
67  virtual double rotationAngle( const OdDbObjectPtr pObject ) const = 0;
68  virtual OdGePoint2d viewBasePoint( const OdDbObjectPtr pObject ) const = 0;
69  virtual OdGePoint3d center( const OdDbObjectPtr pObject ) = 0;
70  virtual OdResult updateViewportScale( const OdDbObjectPtr pObject, double scale ) = 0;
71  virtual bool isScaleFromParent( const OdDbObjectPtr pObject ) const = 0;
72  virtual void setScaleFromParent( OdDbObjectPtr pObject, bool fromParent ) = 0;
73 };
75 
77 {
78 public:
80 
81  virtual void setOwnerViewportId( OdDbBlockReferencePtr pBlockRef, OdDbObjectId& viewportId ) = 0;
82  virtual OdDbObjectId ownerViewportId( const OdDbBlockReferencePtr pBlockRef ) const = 0;
83 };
85 
86 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
scale
Definition: DimVarDefs.h:1684
OdSmartPtr< CFxViewRepBlockReferencePE > CFxViewRepBlockReferencePEPtr
OdSmartPtr< CFxViewBorderPE > CFxViewBorderPEPtr
OdSmartPtr< CFxViewRepPE > CFxViewRepPEPtr
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
virtual OdDbObjectId viewportId(const OdDbEntityPtr pEntity) const =0
virtual OdDbViewBorder::SourceType sourceType(const OdDbEntityPtr pEntity) const =0
virtual OdResult setSize(OdDbEntityPtr pEntity, const OdGePoint3d &minPt, const OdGePoint3d &maxPt)=0
virtual void setScale(OdDbEntityPtr pEntity, double newScale)=0
virtual OdGePoint3d centerPoint3d(const OdDbEntityPtr pEntity, bool exludeSketchEnts=true) const =0
virtual OdResult setViewportId(OdDbEntityPtr pEntity, const OdDbObjectId &viewportId)=0
virtual OdGePoint2d centerPoint(const OdDbEntityPtr pEntity, bool exludeSketchEnts=true) const =0
virtual OdGePoint3d insertionPoint(const OdDbEntityPtr pEntity) const =0
virtual OdDbViewBorder::ViewStyleType viewStyleType(const OdDbEntityPtr pEntity) const =0
virtual OdString inventorFileReference(const OdDbEntityPtr pEntity) const =0
ODRX_DECLARE_MEMBERS(CFxViewBorderPE)
virtual double width(const OdDbEntityPtr pEntity) const =0
virtual bool isFirstAngleProjection(const OdDbEntityPtr pEntity) const =0
virtual OdResult getSize(const OdDbEntityPtr pEntity, OdGePoint3d &minPt, OdGePoint3d &maxPt) const =0
virtual OdUInt32 shadedDPI(const OdDbEntityPtr pEntity) const =0
virtual double rotationAngle(const OdDbEntityPtr pEntity) const =0
virtual double scale(const OdDbEntityPtr pEntity) const =0
virtual double height(const OdDbEntityPtr pEntity) const =0
virtual OdDbObjectId ownerViewportId(const OdDbBlockReferencePtr pBlockRef) const =0
ODRX_DECLARE_MEMBERS(CFxViewRepBlockReferencePE)
virtual void setOwnerViewportId(OdDbBlockReferencePtr pBlockRef, OdDbObjectId &viewportId)=0
ODRX_DECLARE_MEMBERS(CFxViewRepPE)
virtual OdResult updateViewportScale(const OdDbObjectPtr pObject, double scale)=0
virtual OdDbObjectId viewBorderId(const OdDbObjectPtr pObject) const =0
virtual bool isShaded(const OdDbObjectPtr pObject)=0
virtual bool isScaleFromParent(const OdDbObjectPtr pObject) const =0
virtual const OdString & label(const OdDbObjectPtr pObject)=0
virtual OdDbViewRep::ViewType viewType(const OdDbObjectPtr pObject)=0
virtual OdResult sketchModelSpaceToPaperSpaceXform(const OdDbObjectPtr pObject, OdGeMatrix3d &mat) const =0
virtual OdDbObjectId selSetObjId(const OdDbObjectPtr pObject) const =0
virtual void camera(const OdDbObjectPtr pObject, OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector)=0
virtual bool isPartialMSView(const OdDbObjectPtr pObject) const =0
virtual OdResult viewModelSpaceToModelSpaceXform(const OdDbObjectPtr pObject, OdGeMatrix3d &mat) const =0
virtual void setInventorDrawingViewId(OdDbObjectPtr pObject, OdUInt64 invDVid)=0
virtual OdDbObjectId viewportId(const OdDbObjectPtr pObject) const =0
virtual OdUInt64 inventorDrawingViewId(const OdDbObjectPtr pObject) const =0
virtual void setScaleFromParent(OdDbObjectPtr pObject, bool fromParent)=0
virtual OdResult sketchModelSpaceToModelSpaceXform(const OdDbObjectPtr pObject, OdGeMatrix3d &mat) const =0
virtual OdGePoint3d center(const OdDbObjectPtr pObject)=0
virtual OdDbObjectId layoutId(const OdDbObjectPtr pObject) const =0
virtual OdGePoint2d viewBasePoint(const OdDbObjectPtr pObject) const =0
virtual double rotationAngle(const OdDbObjectPtr pObject) const =0
virtual OdDbObjectId blockReference(const OdDbObjectPtr pObject) const =0
virtual double scale(const OdDbObjectPtr pObject)=0
virtual unsigned long viewIndex(const OdDbObjectPtr pObject) const =0
virtual OdResult viewModelSpaceToPaperSpaceXform(const OdDbObjectPtr pObject, OdGeMatrix3d &mat) const =0
virtual OdDbObjectId viewBlockReference(const OdDbObjectPtr pObject) const =0
virtual OdDbViewRep::SourceType sourceType(const OdDbObjectPtr pObject)=0
virtual bool labelVisibility(const OdDbObjectPtr pObject)=0