CFx SDK Documentation  2023 SP0
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 
105  OdDbObjectId viewportId() const;
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
OdSmartPtr< OdDbViewRep > OdDbViewRepPtr
Definition: DbViewRep.h:140
scale
Definition: DimVarDefs.h:1684
#define MODELDOCOBJ_EXPORT
OdResult
Definition: OdResult.h:29
OdDbObjectId layoutId() const
void camera(OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector)
const class OdRxSketchManager * getSketchManager() const
OdGePoint2d viewBasePoint() const
OdDbObjectId selSetObjId() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdResult viewModelSpaceToPaperSpaceXform(OdGeMatrix3d &mat) const
unsigned long viewIndex() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdGePoint3d center()
OdResult sketchModelSpaceToPaperSpaceXform(OdGeMatrix3d &mat) const
bool labelVisibility()
double rotationAngle() const
double scale()
ODDB_DECLARE_MEMBERS(OdDbViewRep)
OdRxSketchManager * getSketchManager()
OdResult viewModelSpaceToModelSpaceXform(OdGeMatrix3d &mat) const
void setScaleFromParent(bool fromParent)
OdResult updateViewportScale(double scale)
bool isScaleFromParent() const
OdResult sketchModelSpaceToModelSpaceXform(OdGeMatrix3d &mat) const
OdDbObjectId viewBlockReference() const
virtual ~OdDbViewRep()
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObjectId blockReference() const
OdUInt64 inventorDrawingViewId() const
bool isShaded()
void setInventorDrawingViewId(OdUInt64 invDVid)
const OdString & label()
OdDbObjectId viewBorderId() const
bool isPartialMSView() const