CFx SDK Documentation  2020SP3
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 
OdDbViewRep::ViewStyleType
ViewStyleType
Definition: DbViewRep.h:45
OdResult
OdResult
Definition: OdResult.h:29
CFxViewBorderPE::getSize
virtual OdResult getSize(const OdDbEntityPtr pEntity, OdGePoint3d &minPt, OdGePoint3d &maxPt) const =0
CFxViewRepPE::blockReference
virtual OdDbObjectId blockReference(const OdDbObjectPtr pObject) const =0
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
CFxViewBorderPE::setViewportId
virtual OdResult setViewportId(OdDbEntityPtr pEntity, const OdDbObjectId &viewportId)=0
DbViewBorder.h
CFxViewBorderPE::setScale
virtual void setScale(OdDbEntityPtr pEntity, double newScale)=0
scale
scale
Definition: DimVarDefs.h:1684
CFxViewRepPE::label
virtual const OdString & label(const OdDbObjectPtr pObject)=0
CFxViewRepPE::viewIndex
virtual unsigned long viewIndex(const OdDbObjectPtr pObject) const =0
CFxViewRepPE::labelVisibility
virtual bool labelVisibility(const OdDbObjectPtr pObject)=0
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
CFxViewRepPE::sketchModelSpaceToPaperSpaceXform
virtual OdResult sketchModelSpaceToPaperSpaceXform(const OdDbObjectPtr pObject, OdGeMatrix3d &mat) const =0
CFxViewRepPE::setScaleFromParent
virtual void setScaleFromParent(OdDbObjectPtr pObject, bool fromParent)=0
OdDbViewRep::SourceType
SourceType
Definition: DbViewRep.h:53
CFxViewRepBlockReferencePE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxViewRepBlockReferencePE)
CFxViewRepBlockReferencePE::ownerViewportId
virtual OdDbObjectId ownerViewportId(const OdDbBlockReferencePtr pBlockRef) const =0
CFxViewRepPE::updateViewportScale
virtual OdResult updateViewportScale(const OdDbObjectPtr pObject, double scale)=0
CFxViewRepPE::viewBlockReference
virtual OdDbObjectId viewBlockReference(const OdDbObjectPtr pObject) const =0
CFxViewRepPE::viewBasePoint
virtual OdGePoint2d viewBasePoint(const OdDbObjectPtr pObject) const =0
CFxViewRepPE::inventorDrawingViewId
virtual OdUInt64 inventorDrawingViewId(const OdDbObjectPtr pObject) const =0
CFxViewRepPE::isScaleFromParent
virtual bool isScaleFromParent(const OdDbObjectPtr pObject) const =0
OdDbViewBorder::ViewStyleType
ViewStyleType
Definition: DbViewBorder.h:58
DbBlockReference.h
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
CFxViewRepPE::viewportId
virtual OdDbObjectId viewportId(const OdDbObjectPtr pObject) const =0
CFxViewRepPE::viewModelSpaceToModelSpaceXform
virtual OdResult viewModelSpaceToModelSpaceXform(const OdDbObjectPtr pObject, OdGeMatrix3d &mat) const =0
CFxViewBorderPE::inventorFileReference
virtual OdString inventorFileReference(const OdDbEntityPtr pEntity) const =0
CFxViewBorderPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxViewBorderPE)
CFxViewBorderPE::insertionPoint
virtual OdGePoint3d insertionPoint(const OdDbEntityPtr pEntity) const =0
CFxViewRepPE::center
virtual OdGePoint3d center(const OdDbObjectPtr pObject)=0
CFxViewRepPE::sourceType
virtual OdDbViewRep::SourceType sourceType(const OdDbObjectPtr pObject)=0
CFxViewRepPE::layoutId
virtual OdDbObjectId layoutId(const OdDbObjectPtr pObject) const =0
OdSmartPtr< OdDbEntity >
OdGePoint3d
Definition: GePoint3d.h:55
CFxViewRepPE
Definition: FxDbDrawingViewPE.h:33
CFxViewBorderPE::sourceType
virtual OdDbViewBorder::SourceType sourceType(const OdDbEntityPtr pEntity) const =0
CFxViewBorderPE::scale
virtual double scale(const OdDbEntityPtr pEntity) const =0
CFxViewRepPE::viewType
virtual OdDbViewRep::ViewType viewType(const OdDbObjectPtr pObject)=0
CFxViewRepPE::isPartialMSView
virtual bool isPartialMSView(const OdDbObjectPtr pObject) const =0
CFxViewBorderPE::centerPoint3d
virtual OdGePoint3d centerPoint3d(const OdDbEntityPtr pEntity, bool exludeSketchEnts=true) const =0
CFxViewBorderPEPtr
OdSmartPtr< CFxViewBorderPE > CFxViewBorderPEPtr
Definition: FxDbDrawingViewPE.h:29
CFxViewBorderPE::isFirstAngleProjection
virtual bool isFirstAngleProjection(const OdDbEntityPtr pEntity) const =0
CFxViewBorderPE::rotationAngle
virtual double rotationAngle(const OdDbEntityPtr pEntity) const =0
CFxViewRepPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxViewRepPE)
CFxViewRepBlockReferencePEPtr
OdSmartPtr< CFxViewRepBlockReferencePE > CFxViewRepBlockReferencePEPtr
Definition: FxDbDrawingViewPE.h:84
CFxViewBorderPE::height
virtual double height(const OdDbEntityPtr pEntity) const =0
CFxViewRepPE::setInventorDrawingViewId
virtual void setInventorDrawingViewId(OdDbObjectPtr pObject, OdUInt64 invDVid)=0
CFxViewRepPE::scale
virtual double scale(const OdDbObjectPtr pObject)=0
CFxViewRepPE::rotationAngle
virtual double rotationAngle(const OdDbObjectPtr pObject) const =0
CFxViewRepBlockReferencePE::setOwnerViewportId
virtual void setOwnerViewportId(OdDbBlockReferencePtr pBlockRef, OdDbObjectId &viewportId)=0
CFxViewBorderPE
Definition: FxDbDrawingViewPE.h:8
CFxViewBorderPE::shadedDPI
virtual OdUInt32 shadedDPI(const OdDbEntityPtr pEntity) const =0
CFxViewRepPE::camera
virtual void camera(const OdDbObjectPtr pObject, OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector)=0
CFxViewBorderPE::setSize
virtual OdResult setSize(OdDbEntityPtr pEntity, const OdGePoint3d &minPt, const OdGePoint3d &maxPt)=0
CFxViewBorderPE::width
virtual double width(const OdDbEntityPtr pEntity) const =0
CFxViewRepPE::viewBorderId
virtual OdDbObjectId viewBorderId(const OdDbObjectPtr pObject) const =0
CFxViewBorderPE::centerPoint
virtual OdGePoint2d centerPoint(const OdDbEntityPtr pEntity, bool exludeSketchEnts=true) const =0
CFxViewRepPEPtr
OdSmartPtr< CFxViewRepPE > CFxViewRepPEPtr
Definition: FxDbDrawingViewPE.h:74
CFxViewRepPE::sketchModelSpaceToModelSpaceXform
virtual OdResult sketchModelSpaceToModelSpaceXform(const OdDbObjectPtr pObject, OdGeMatrix3d &mat) const =0
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbViewBorder::SourceType
SourceType
Definition: DbViewBorder.h:70
OdDbViewRep::ViewType
ViewType
Definition: DbViewRep.h:61
CFxViewRepPE::viewModelSpaceToPaperSpaceXform
virtual OdResult viewModelSpaceToPaperSpaceXform(const OdDbObjectPtr pObject, OdGeMatrix3d &mat) const =0
CFxViewBorderPE::viewStyleType
virtual OdDbViewBorder::ViewStyleType viewStyleType(const OdDbEntityPtr pEntity) const =0
DbViewRep.h
CFxViewBorderPE::viewportId
virtual OdDbObjectId viewportId(const OdDbEntityPtr pEntity) const =0
OdUInt64
Definition: Int64.h:137
CFxViewRepBlockReferencePE
Definition: FxDbDrawingViewPE.h:77
OdGePoint2d
Definition: GePoint2d.h:60
CFxViewRepPE::selSetObjId
virtual OdDbObjectId selSetObjId(const OdDbObjectPtr pObject) const =0