CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbPlotSettings.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_DBPLOTSETTINGS_H
25#define OD_DBPLOTSETTINGS_H
26
27#include "TD_PackPush.h"
28
29#include "DbObject.h"
30#include "Ge/GePoint2d.h"
31
39{
40public:
42
44
46 {
47 kInches = 0, // Inches
48 kMillimeters = 1, // Millimeters
49 kPixels = 2 // Pixels
50 };
51
53 {
54 k0degrees = 0, // No rotation
55 k90degrees = 1, // 90° CCW
56 k180degrees = 2, // Inverted
57 k270degrees = 3 // 90° CW
58 };
59
61 {
62 kDisplay = 0, // Display
63 kExtents = 1, // Extents
64 kLimits = 2, // Limits
65 kView = 3, // View
66 kWindow = 4, // Window
67 kLayout = 5 // Layout
68 };
69
71 {
72 kScaleToFit = 0, // Scaled to Fit
73 k1_128in_1ft = 1, // 1/128" = 1'
74 k1_64in_1ft = 2, // 1/64" = 1'
75 k1_32in_1ft = 3, // 1/32" = 1'
76 k1_16in_1ft = 4, // 1/16" = 1'
77 k3_32in_1ft = 5, // 3/32" = 1'
78 k1_8in_1ft = 6, // 1/8" = 1'
79 k3_16in_1ft = 7, // 3/16" = 1'
80 k1_4in_1ft = 8, // 1/4" = 1'
81 k3_8in_1ft = 9, // 3/8" = 1'
82 k1_2in_1ft = 10, // 1/2" = 1'
83 k3_4in_1ft = 11, // 3/4" = 1'
84 k1in_1ft = 12, // 1" = 1'
85 k3in_1ft = 13, // 3" = 1'
86 k6in_1ft = 14, // 6" = 1'
87 k1ft_1ft = 15, // 1' = 1'
88 k1_1 = 16, // 1:1
89 k1_2 = 17, // 1:2
90 k1_4 = 18, // 1:4
91 k1_5 = 19, // 1:5
92 k1_8 = 20, // 1:8
93 k1_10 = 21, // 1:10
94 k1_16 = 22, // 1:16
95 k1_20 = 23, // 1:20
96 k1_30 = 24, // 1:30
97 k1_40 = 25, // 1:40
98 k1_50 = 26, // 1:50
99 k1_100 = 27, // 1:100
100 k2_1 = 28, // 2:1
101 k4_1 = 29, // 4:1
102 k8_1 = 30, // 8:1
103 k10_1 = 31, // 10:1
104 k100_1 = 32, // 100:1
105 k1000_1 = 33, // 1000:1
106 k1and1_2in_1ft = 34 // 1.5"= 1'
107 };
108
110 {
111 kAsDisplayed = 0, // As displayed
112 kWireframe = 1, // Wireframe
113 kHidden = 2, // Hidden lines removed
114 kRendered = 3, // Rendered
115 kVisualStyle = 4, // Visual style
116 kRenderPreset = 5 // Render preset
117 };
118
120 {
121 kDraft = 0, // Draft
122 kPreview = 1, // Preview
123 kNormal = 2, // Normal
124 kPresentation = 3, // Presentation
125 kMaximum = 4, // Maximum
126 kCustom = 5 // Custom
127 };
128
135 OdDbDatabase *pDb);
136
141
148 const OdString& plotSettingsName);
149
154
168 double& leftMargin,
169 double& bottomMargin,
170 double& rightMargin,
171 double& topMargin) const;
172
181 double& paperWidth,
182 double& paperHeight) const;
183
191
203 double& xCoordinate,
204 double& yCoordinate) const;
205
220
228
235 bool plotViewportBorders);
236
243 bool plotPlotStyles() const;
244
251 bool plotPlotStyles);
252
256 bool showPlotStyles() const;
257
264 bool showPlotStyles);
265
281
285 bool plotCentered() const;
286
291 bool plotHidden() const;
292
299 void setPlotHidden(bool plotHidden);
300
318
331 double& xMin,
332 double& yMin,
333 double& xMax,
334 double& yMax) const;
335
343
347 bool useStandardScale() const;
348
359 double& numerator,
360 double& denominator) const;
361
366
413
414
421 double& standardScale) const;
422
426 bool scaleLineweights() const;
427
434 bool scaleLineweights);
435
439 bool printLineweights() const;
440
446 void setPrintLineweights(bool printLineweights);
447
473 bool drawViewportsFirst() const;
474
482 bool drawViewportsFirst);
483
490 bool modelType() const;
491
500 void setModelType(bool modelType);
501
505 double getTopMargin() const;
506
510 double getRightMargin() const;
511
515 double getBottomMargin() const;
516
520 double getLeftMargin() const;
521
526
531 void setPaperImageOrigin(OdGePoint2d paperImageOrigin);
532
533 // New to 2004 api
534
551
571
593
617 OdDbPlotSettings::ShadePlotResLevel shadePlotResLevel);
618
631
646 OdInt16 shadePlotCustomDPI);
647
649 void* pClsid) const;
650
652 OdDbDwgFiler* pFiler);
653
654 virtual void dwgOutFields(
655 OdDbDwgFiler* pFiler) const;
656
658 OdDbDxfFiler* pFiler);
659
660 virtual void dxfOutFields(
661 OdDbDxfFiler* pFiler) const;
662
663 virtual void subClose();
664
666 bool erasing);
667
668 virtual void subHandOverTo(
669 OdDbObject* pNewObject);
670
671 virtual void copyFrom(
672 const OdRxObject* pSource);
673
674// New in AC2007
675
676// Returns the OdDbObjectId of the OdDbVisualStyle or OdDbRenderSettings object
677// referenced by this object.
678
684
703 OdDbObjectId shadePlotId);
707 bool plotWireframe() const;
711 bool plotAsRaster () const;
712
716 bool plotTransparency() const;
722 void setPlotTransparency(bool bSet);
723};
724
729
730#include "TD_PackPop.h"
731
732#endif
733
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbPlotSettings > OdDbPlotSettingsPtr
@ kExtents
@ kPresentation
short OdInt16
OdResult
Definition: OdResult.h:29
bool showPlotStyles() const
OdString getPlotCfgName() const
OdString getPlotSettingsName() const
void getPlotOrigin(double &xCoordinate, double &yCoordinate) const
void setShadePlotCustomDPI(OdInt16 shadePlotCustomDPI)
void setModelType(bool modelType)
void setPlotPlotStyles(bool plotPlotStyles)
bool plotCentered() const
OdString getPlotViewName() const
OdString getCurrentStyleSheet() const
bool plotTransparency() const
OdString getCanonicalMediaName() const
bool modelType() const
void getPlotWindowArea(double &xMin, double &yMin, double &xMax, double &yMax) const
OdDbPlotSettings::PlotType plotType() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setShadePlotResLevel(OdDbPlotSettings::ShadePlotResLevel shadePlotResLevel)
void setScaleLineweights(bool scaleLineweights)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
ODDB_DECLARE_MEMBERS(OdDbPlotSettings)
double getRightMargin() const
void getStdScale(double &standardScale) const
bool printLineweights() const
void setPrintLineweights(bool printLineweights)
bool plotHidden() const
OdDbPlotSettings::PlotRotation plotRotation() const
OdDbPlotSettings::StdScaleType stdScaleType() const
virtual OdResult subErase(bool erasing)
virtual void subClose()
OdDbPlotSettings::PlotPaperUnits plotPaperUnits() const
double getTopMargin() const
bool plotViewportBorders() const
OdDbPlotSettings::ShadePlotType shadePlot() const
void setDrawViewportsFirst(bool drawViewportsFirst)
OdInt16 shadePlotCustomDPI() const
bool plotPlotStyles() const
void setPlotSettingsName(const OdString &plotSettingsName)
void setPlotViewportBorders(bool plotViewportBorders)
bool drawViewportsFirst() const
void getCustomPrintScale(double &numerator, double &denominator) const
virtual void subHandOverTo(OdDbObject *pNewObject)
OdResult setShadePlot(OdDbPlotSettings::ShadePlotType shadePlot)
virtual OdResult subGetClassID(void *pClsid) const
OdDbObjectId shadePlotId() const
bool plotAsRaster() const
void getPlotPaperMargins(double &leftMargin, double &bottomMargin, double &rightMargin, double &topMargin) const
OdGePoint2d getPaperImageOrigin() const
bool scaleLineweights() const
void setShowPlotStyles(bool showPlotStyles)
double getBottomMargin() const
virtual void copyFrom(const OdRxObject *pSource)
void setPlotTransparency(bool bSet)
OdDbPlotSettings::ShadePlotResLevel shadePlotResLevel() const
void getPlotPaperSize(double &paperWidth, double &paperHeight) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdResult setShadePlot(OdDbPlotSettings::ShadePlotType type, OdDbObjectId shadePlotId)
bool plotWireframe() const
void setPaperImageOrigin(OdGePoint2d paperImageOrigin)
void addToPlotSettingsDict(OdDbDatabase *pDb)
double getLeftMargin() const
void setPlotHidden(bool plotHidden)
bool useStandardScale() const
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274