CFx SDK Documentation  2020SP3
DbViewRep.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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_VIEWREP_H
25 #define OD_VIEWREP_H
26 
27 #include "DbObject.h"
28 #include "ModelDocObjExports.h"
29 
30 #include "TD_PackPush.h"
31 
38 {
39 public:
42  virtual ~OdDbViewRep();
43 
45  {
46  kVisibleLines = 0,
47  kVisibleAndHiddenLines = 1,
48  kShadedVisibleLines = 2,
49  kShadedVisibleAndHiddenLines = 3
50  };
51 
53  {
54  kSourceNotDefined = 0,
55  kInventorSource = 1,
56  kFusionSource = 2,
57  kModelSpaceSource = 3
58  };
59 
60  enum ViewType
61  {
62  kBaseFront = 0,
63  kBaseTop = 1,
64  kBaseRight = 2,
65  kBaseBack = 3,
66  kBaseBottom = 4,
67  kBaseLeft = 5,
68  kBaseNEIsometric = 6,
69  kBaseNWIsometric = 7,
70  kBaseSEIsometric = 8,
71  kBaseSWIsometric = 9,
72  kBaseCurrent = 10,
73  kDetail = 13,
74  kSection = 14,
75  kProjected = 15
76  };
77 
78  enum
79  {
80  kShaded = 1,
81  kLabelVisibility = 1 << 1,
82  kScaleFromParent = 1 << 6
83  };
84 
87 
90 
92  bool isPartialMSView() const;
93  unsigned long viewIndex() const;
94 
98 
99  const class OdRxSketchManager* getSketchManager() const;
101 
106 
107  enum OdDbViewRep::SourceType sourceType();
108  const OdString& label();
110  double scale();
111 
112  bool isShaded();
113  enum OdDbViewRep::ViewStyleType viewStyleType();
114  enum OdDbViewRep::ViewType viewType();
115  void camera( OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector );
116  double rotationAngle() const;
120  bool isScaleFromParent() const;
121  void setScaleFromParent( bool fromParent );
122 
123 protected:
124  // OdDbObject methods :
126  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
128  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
129 
130  friend class OdDbImpAssocViewRepActionBody;
131 
132 private:
133  void setRotationAngle(double angle);
134 
135 };
136 
141 
142 #include "TD_PackPop.h"
143 
144 #endif // OD_VIEWREP_H
OdDbViewRep::ViewStyleType
ViewStyleType
Definition: DbViewRep.h:45
OdResult
OdResult
Definition: OdResult.h:29
OdDbViewRepPtr
OdSmartPtr< OdDbViewRep > OdDbViewRepPtr
Definition: DbViewRep.h:140
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
scale
scale
Definition: DimVarDefs.h:1684
OdDbViewRep::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbViewRep)
DbObject.h
OdDbViewRep::isScaleFromParent
bool isScaleFromParent() const
OdDbViewRep::setInventorDrawingViewId
void setInventorDrawingViewId(OdUInt64 invDVid)
OdDbViewRep::camera
void camera(OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector)
OdDbViewRep::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbViewRep::SourceType
SourceType
Definition: DbViewRep.h:53
OdDbViewRep::setScaleFromParent
void setScaleFromParent(bool fromParent)
OdDbViewRep::getSketchManager
const class OdRxSketchManager * getSketchManager() const
OdDbViewRep::sketchModelSpaceToModelSpaceXform
OdResult sketchModelSpaceToModelSpaceXform(OdGeMatrix3d &mat) const
TD_PackPop.h
OdDbViewRep::selSetObjId
OdDbObjectId selSetObjId() const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbViewRep::isPartialMSView
bool isPartialMSView() const
OdDbViewRep::OdDbViewRep
OdDbViewRep()
OdDbViewRep::viewportId
OdDbObjectId viewportId() const
OdDbViewRep::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbViewRep::labelVisibility
bool labelVisibility()
OdDbViewRep::getSketchManager
OdRxSketchManager * getSketchManager()
ModelDocObjExports.h
OdSmartPtr
Definition: SmartPtr.h:58
OdDbViewRep::label
const OdString & label()
OdGePoint3d
Definition: GePoint3d.h:55
OdDbViewRep::viewBorderId
OdDbObjectId viewBorderId() const
OdDbViewRep::rotationAngle
double rotationAngle() const
OdDbViewRep::scale
double scale()
OdDbViewRep::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbViewRep::viewIndex
unsigned long viewIndex() const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbViewRep::updateViewportScale
OdResult updateViewportScale(double scale)
TD_PackPush.h
OdDbViewRep::layoutId
OdDbObjectId layoutId() const
OdDbViewRep::viewModelSpaceToPaperSpaceXform
OdResult viewModelSpaceToPaperSpaceXform(OdGeMatrix3d &mat) const
OdDbViewRep::sketchModelSpaceToPaperSpaceXform
OdResult sketchModelSpaceToPaperSpaceXform(OdGeMatrix3d &mat) const
OdRxSketchManager
Definition: RxSketchManager.h:35
OdDbViewRep::viewModelSpaceToModelSpaceXform
OdResult viewModelSpaceToModelSpaceXform(OdGeMatrix3d &mat) const
MODELDOCOBJ_EXPORT
#define MODELDOCOBJ_EXPORT
Definition: ModelDocObjExports.h:33
OdDbViewRep::center
OdGePoint3d center()
OdDbViewRep::ViewType
ViewType
Definition: DbViewRep.h:61
OdDbViewRep
Definition: DbViewRep.h:38
OdDbViewRep::blockReference
OdDbObjectId blockReference() const
OdDbViewRep::inventorDrawingViewId
OdUInt64 inventorDrawingViewId() const
OdDbViewRep::~OdDbViewRep
virtual ~OdDbViewRep()
OdDbViewRep::viewBlockReference
OdDbObjectId viewBlockReference() const
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbViewRep::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdUInt64
Definition: Int64.h:137
OdGePoint2d
Definition: GePoint2d.h:60
OdDbViewRep::viewBasePoint
OdGePoint2d viewBasePoint() const