CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbViewRep.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_VIEWREP_H
25#define OD_VIEWREP_H
26
27#include "DbObject.h"
28#include "ModelDocObjExports.h"
29
30#include "TD_PackPush.h"
31
38{
39public:
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
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
108 const OdString& label();
110 double scale();
111
112 bool isShaded();
116 void camera( OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector );
117 double rotationAngle() const;
121 bool isScaleFromParent() const;
122 void setScaleFromParent( bool fromParent );
123
124protected:
125 // OdDbObject methods :
127 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
129 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
130
131 friend class OdDbImpAssocViewRepActionBody;
132
133private:
134 void setRotationAngle(double angle);
135
136};
137
142
143#include "TD_PackPop.h"
144
145#endif // OD_VIEWREP_H
OdSmartPtr< OdDbViewRep > OdDbViewRepPtr
Definition: DbViewRep.h:141
scale
Definition: DimVarDefs.h:1684
#define MODELDOCOBJ_EXPORT
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
OdDbObjectId layoutId() const
enum OdDbViewRep::ViewStyleType viewStyleType()
OdUInt32 shadeResolution() const
void camera(OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector)
OdGePoint2d viewBasePoint() const
OdDbObjectId selSetObjId() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdResult viewModelSpaceToPaperSpaceXform(OdGeMatrix3d &mat) const
unsigned long viewIndex() const
OdDbObjectId viewportId() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdGePoint3d center()
OdResult sketchModelSpaceToPaperSpaceXform(OdGeMatrix3d &mat) const
OdRxSketchManager * getSketchManager()
const class OdRxSketchManager * getSketchManager() const
bool labelVisibility()
double rotationAngle() const
double scale()
ODDB_DECLARE_MEMBERS(OdDbViewRep)
const OdString & label()
enum OdDbViewRep::SourceType sourceType()
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
enum OdDbViewRep::ViewType viewType()
bool isShaded()
void setInventorDrawingViewId(OdUInt64 invDVid)
OdDbObjectId viewBorderId() const
bool isPartialMSView() const