CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbViewRep.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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 "DbViewRepStandard.h"
29#include "ModelDocObjExports.h"
30#include "DbViewSymbol.h"
31
32#include "TD_PackPush.h"
33
35class OdDbViewRepLogical;
36class OdDbViewRepBodyManager;
37
49{
50public:
53 virtual ~OdDbViewRep();
54
60
68
70 {
71 kBase = 0,
76 };
77
78 /* For ViewType::kBase only */
107
108
142 //DOM-IGNORE-BEGIN
151
164
173 //DOM-IGNORE-END
174
182 //DOM-IGNORE-BEGIN
194 bool isPartialMSView() const;
198 unsigned long viewIndex() const;
199
208 //DOM-IGNORE-END
215 //DOM-IGNORE-BEGIN
219 OdDbViewRepLogical* logical();
220
229 //DOM-IGNORE-END
230
238 //DOM-IGNORE-BEGIN
243 //DOM-IGNORE-END
262 //DOM-IGNORE-BEGIN
271 //DOM-IGNORE-END
272
292 bool labelVisibility() const;
297 void setLabelVisibility(bool vis);
303 double scale() const;
304
310 bool isShaded() const;
346
363 bool foreshortened() const;
368 void setForeshortened(bool val);
387 bool inheritViewStyle() const;
397 void setIsShaded(bool doIt);
398
408 void camera( OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector ) const;
409 //DOM-IGNORE-BEGIN
413 void setCamera(const OdGePoint3d& target, const OdGePoint3d & eye, const OdGeVector3d& up);
414 //DOM-IGNORE-END
418 double rotationAngle() const;
419 //DOM-IGNORE-BEGIN
428 //DOM-IGNORE-END
439 bool isScaleFromParent() const;
448 void setScaleFromParent( bool fromParent );
458 bool inheritSection() const;
464 void setInheritSection(bool inherit);
465
474
496 const OdDbViewSymbol* viewSymbol = nullptr );
497
502 //OdResult generateGraphics();
503
504 //DOM-IGNORE-BEGIN
508 OdDbViewRepBodyManager* bodyManager();
512 const OdDbViewRepBodyManager* bodyManager() const;
513
518
523
528 //DOM-IGNORE-END
529
530 virtual void subClose() override;
531
532protected:
533 // OdDbObject methods :
535 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
537 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
539
542
543private:
544 void setRotationAngle(double angle);
545
546};
547
552
567
568#include "TD_PackPop.h"
569
570#endif // OD_VIEWREP_H
MODELDOCOBJ_EXPORT int odmdConvertViews(OdDbDatabase *db, OdString *idwWarning=0)
OdSmartPtr< OdDbViewRep > OdDbViewRepPtr
Definition DbViewRep.h:551
#define MODELDOCOBJ_EXPORT
unsigned int OdUInt32
OdResult
Definition OdResult.h:29
OdDbDwgFiler * undoFiler()
OdDbObjectId layoutId() const
virtual void subClose() override
void setModelSpaceSourceId(OdDbObjectId id)
bool labelVisibility() const
void setTangentEdgeVisibility(bool val)
bool interferenceEdgesVisibility() const
OdDbViewRep::ViewOrientType viewOrientType() const
OdDbObjectId lookUpSectionSymbol() const
bool tangentEdgeVisibility() const
const OdDbViewRepBodyManager * bodyManager() const
void camera(OdGePoint3d &eye, OdGePoint3d &target, OdGeVector3d &upVector) const
void setForeshortened(bool val)
OdDbViewRepBodyManager * bodyManager()
OdResult sketchModelSpaceToViewModelSpaceXform(OdGeMatrix3d &mat) const
@ kSourceNotDefined
Definition DbViewRep.h:63
@ kModelSpaceSource
Definition DbViewRep.h:66
@ kInventorSource
Definition DbViewRep.h:64
OdGePoint2d viewBasePoint() const
OdDbObjectId selSetObjId() const
OdDbViewRep::ViewStyleType viewStyleType() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setIsShaded(bool doIt)
void clearBodyManager()
void setCamera(const OdGePoint3d &target, const OdGePoint3d &eye, const OdGeVector3d &up)
OdDbViewRep::ViewType viewType() const
void setInterferenceEdgesVisibility(bool val)
OdResult viewModelSpaceToPaperSpaceXform(OdGeMatrix3d &mat) const
static OdSmartPtr< OdDbViewRep > createViewRep(OdDbDatabase *db, const OdDbViewInitParams &params, const OdDbViewSymbol *viewSymbol=nullptr)
OdDbObjectId entityBackupBlockRef() const
unsigned long viewIndex() const
void setLabelVisibility(bool vis)
void setSelSetObjId(OdDbObjectId id)
OdDbObjectId viewportId() const
void setViewStyleType(OdDbViewRep::ViewStyleType vst)
void setViewType(OdDbViewRep::ViewType type)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbViewRep::SourceType sourceType() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdResult sketchModelSpaceToPaperSpaceXform(OdGeMatrix3d &mat) const
OdResult loadBodyOverrides()
OdDbViewRepStandard::DpiResolutionType shadeResolution() const
OdRxSketchManager * getSketchManager()
const class OdRxSketchManager * getSketchManager() const
double rotationAngle() const
bool isShaded() const
@ kVisibleAndHiddenLines
Definition DbViewRep.h:57
@ kVisibleLinesOnly
Definition DbViewRep.h:58
ODDB_DECLARE_MEMBERS(OdDbViewRep)
OdDbObjectId shadedImageViewportId() const
OdResult viewModelSpaceToModelSpaceXform(OdGeMatrix3d &mat) const
void setScaleFromParent(bool fromParent)
OdDbObjectId cutDefinitionId(OdUInt32 index=0) const
OdResult updateViewportScale(double scale)
bool bodyOverridesLoaded() const
bool isScaleFromParent() const
void applyPartialUndo(OdDbDwgFiler *undoFiler, OdRxClass *pClass) override
OdResult sketchModelSpaceToModelSpaceXform(OdGeMatrix3d &mat) const
OdDbObjectId viewBlockReference() const
virtual ~OdDbViewRep()
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbViewRepLogical * logical()
double scale() const
OdString label() const
OdUInt64 inventorDrawingViewId() const
void setInheritSection(bool inherit)
bool inheritViewStyle() const
friend class OdDbImpAssocViewRepActionBody
Definition DbViewRep.h:540
OdGePoint3d center() const
bool inheritSection() const
OdDbObjectId orientationId() const
void setInheritViewStyle(bool value)
void setInventorDrawingViewId(OdUInt64 invDVid)
friend class OdDbAssocViewRepActionBodyEvaluator
Definition DbViewRep.h:541
@ kUnk10ViewOrientation
Definition DbViewRep.h:92
@ kUnk12ViewOrientation
Definition DbViewRep.h:94
@ kUnk18ViewOrientation
Definition DbViewRep.h:101
@ kUnk17ViewOrientation
Definition DbViewRep.h:100
@ kUnk13ViewOrientation
Definition DbViewRep.h:95
@ kUnk16ViewOrientation
Definition DbViewRep.h:99
@ kUnk15ViewOrientation
Definition DbViewRep.h:98
@ kUnk14ViewOrientation
Definition DbViewRep.h:97
@ kUnk19ViewOrientation
Definition DbViewRep.h:102
@ kUnk11ViewOrientation
Definition DbViewRep.h:93
OdDbObjectId viewBorderId() const
bool isPartialMSView() const
void setViewOrientType(OdDbViewRep::ViewOrientType type)
bool foreshortened() const
GLenum GLint * params
Definition gles2_ext.h:184
GLuint index
Definition gles2_ext.h:265
GLuint GLsizei GLsizei GLint GLenum * type
Definition gles2_ext.h:274
GLsizei const GLfloat * value
Definition gles2_ext.h:302