CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
GiNonEntityTraits.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 __ODGI_NONENTITYTRAITS_H__
25#define __ODGI_NONENTITYTRAITS_H__
26
27#include "TD_PackPush.h"
28
29#include "Gi/Gi.h"
30#include "OdCodePage.h"
31#include "Gi/GiDrawable.h"
32
34class OdFont;
35class OdTtfDescriptor;
36class OdGiTextStyle;
37
47{
48public:
50
51 // returned via subSetAttributes()
52
53 enum
54 {
56 kByBlock = (OdGiDrawable::kLastFlag << 1),
58 kFrozen = (OdGiDrawable::kLastFlag << 2),
62 kPlottable = (OdGiDrawable::kLastFlag << 4),
64 kLocked = (OdGiDrawable::kLastFlag << 5)
65 };
66
75 virtual OdCmEntityColor color() const = 0;
76
85 virtual OdDb::LineWeight lineweight() const = 0;
86
95 virtual OdDbStub* linetype() const = 0;
96
116 virtual OdDbStub* plotStyleNameId() const = 0;
124 virtual OdDbStub* materialId() const = 0;
135 virtual OdCmTransparency transparency() const = 0;
136
143 virtual void setColor(const OdCmEntityColor& color) = 0;
150 virtual void setLineweight(OdDb::LineWeight lineweight) = 0;
157 virtual void setLinetype(OdDbStub* pLinetypeId) = 0;
158
178 virtual void setPlotStyleName(OdDb::PlotStyleNameType plotStyleNameType, OdDbStub* pPlotStyleNameId= 0) = 0;
179
184 virtual void setMaterial(OdDbStub* pMaterialId) = 0;
185
195 virtual void setTransparency(const OdCmTransparency &transparency) = 0;
196};
197
202
203
212{
213public:
215
216 // returned via subSetAttributes()
217
218 enum
219 {
221 kByBlock = (OdGiDrawable::kLastFlag << 1),
223 kByLayer = (OdGiDrawable::kLastFlag << 2),
225 kContinuous = (OdGiDrawable::kLastFlag << 3),
227 kScaleToFit = (OdGiDrawable::kLastFlag << 4),
228 // Values specific to .dgn files
230 kScalability= (OdGiDrawable::kLastFlag << 5),
232 kDgLinetype = (OdGiDrawable::kLastFlag << 6),
233 //
234 kGiLinetypeFlagMax = kDgLinetype
235 };
236
244 virtual double patternLength() const = 0;
245
250 virtual void dashes(OdArray<OdGiLinetypeDash>& dashes) = 0;
251
255 virtual double scale() const = 0;
256
261 virtual void setDashes(const OdArray<OdGiLinetypeDash>& dashes) = 0;
266 virtual void setScale(double scale) = 0;
275 virtual void setPatternLength(double patternLength) = 0;
276};
281
290{
291public:
293
298 virtual void textStyle(OdGiTextStyle& giTextStyle) const = 0;
299
304 virtual void setTextStyle(const OdGiTextStyle& giTextStyle) = 0;
305};
306
311
312#include "TD_PackPop.h"
313
314#endif
scale
Definition: DimVarDefs.h:1684
OdSmartPtr< OdGiLayerTraits > OdGiLayerTraitsPtr
OdSmartPtr< OdGiLinetypeTraits > OdGiLinetypeTraitsPtr
OdSmartPtr< OdGiTextStyleTraits > OdGiTextStyleTraitsPtr
#define FIRSTDLL_EXPORT
Definition: RootExport.h:39
Definition: OdFont.h:371
virtual void setTransparency(const OdCmTransparency &transparency)=0
virtual OdDb::PlotStyleNameType plotStyleNameType() const =0
virtual OdCmTransparency transparency() const =0
virtual OdDb::LineWeight lineweight() const =0
virtual void setLineweight(OdDb::LineWeight lineweight)=0
virtual OdDbStub * plotStyleNameId() const =0
virtual void setMaterial(OdDbStub *pMaterialId)=0
virtual void setPlotStyleName(OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *pPlotStyleNameId=0)=0
virtual OdDbStub * materialId() const =0
virtual OdDbStub * linetype() const =0
virtual void setLinetype(OdDbStub *pLinetypeId)=0
virtual void setColor(const OdCmEntityColor &color)=0
virtual OdCmEntityColor color() const =0
ODRX_DECLARE_MEMBERS(OdGiLayerTraits)
virtual double patternLength() const =0
virtual void setDashes(const OdArray< OdGiLinetypeDash > &dashes)=0
virtual double scale() const =0
virtual void setScale(double scale)=0
ODRX_DECLARE_MEMBERS(OdGiLinetypeTraits)
virtual void dashes(OdArray< OdGiLinetypeDash > &dashes)=0
virtual void setPatternLength(double patternLength)=0
ODRX_DECLARE_MEMBERS(OdGiTextStyleTraits)
virtual void textStyle(OdGiTextStyle &giTextStyle) const =0
virtual void setTextStyle(const OdGiTextStyle &giTextStyle)=0
PlotStyleNameType
Definition: OdaDefs.h:417
LineWeight
Definition: OdaDefs.h:386