CFx SDK Documentation  2023 SP0
AECMvBlockAttribute.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 __AECMVBLOCKATTRIBUTE_H__
25 #define __AECMVBLOCKATTRIBUTE_H__
26 
27 #include "Subobjects/AECImpObj.h"
28 #include <Ge/GePoint3d.h>
29 #include <CmColor.h>
30 #include <TextDefs.h>
31 
37 class AECBASE_API AECMvBlockAttribute : public AECImpObj
38 {
40 
41  public:
45  const OdString& GetPrompt() const;
46 
50  void SetPrompt( const OdString& strPrompt );
51 
55  const OdString& GetValue() const;
56 
60  void SetValue( const OdString& strValue );
61 
65  const OdString& GetTag() const;
66 
70  void SetTag( const OdString& strTag );
71 
75  const OdCmColor& GetColor() const;
76 
80  void SetColor( const OdCmColor& cColor );
81 
86 
90  void SetLayer( const OdDbObjectId& idLayer );
91 
96 
100  void SetLinetype( const OdDbObjectId& idLinetype );
101 
106 
110  void SetTextStyle( const OdDbObjectId& idTextStyle );
111 
116 
121 
126 
131 
135  const OdGePoint3d& GetPosition() const;
136 
140  void SetPosition( const OdGePoint3d& ptPos );
141 
146 
150  void SetAlignmentPoint( const OdGePoint3d& ptPoint );
151 
158  const OdGeVector3d& GetNormal() const;
159 
166  void SetNormal( const OdGeVector3d& vNormal );
167 
171  double GetThickness() const;
172 
176  void SetThickness( double dThickness );
177 
181  double GetOblique() const;
182 
186  void SetOblique( double dOblique );
187 
191  double GetRotation() const;
192 
196  void SetRotation( double dRotation );
197 
201  double GetHeight() const;
202 
206  void SetHeight( double dHeight );
207 
214  double GetWidthFactor() const;
215 
222  void SetWidthFactor( double dFactor );
223 
227  bool IsBackward() const;
228 
232  void SetIsBackward( bool bBackward );
233 
237  bool IsUpsideDown() const;
238 
242  void SetIsUpsideDown( bool bUpsideDown );
243 
247  bool IsInvisible() const;
248 
252  void SetIsInvisible( bool bInvisible );
253 
258 
262  void SetLineWeight( OdDb::LineWeight eLineWeight );
263 
267  double GetLinetypeScale() const;
268 
272  void SetLinetypeScale( double dScale );
273 
274  protected:
275  // Attribute prompt string.
277 
278  // Layer.
280 
281  // Color.
283 
284  // Linetype.
286 
287  // Horizontal alignment.
289 
290  // Vertical alignment.
292 
293  // Origin.
295 
296  // Alignment point.
298 
299  // Extrusion direction.
301 
302  // Thickness.
303  double m_dThickness;
304 
305  // Obliquing.
306  double m_dObliquing;
307 
308  // Rotation.
309  double m_dRotation;
310 
311  // Height.
312  double m_dHeight;
313 
314  // Width factor.
316 
317  // Attribute value.
319 
320  // Text style.
322 
323  // "Backward" flag.
325 
326  // "Upside Down" flag.
328 
329  // Attribute tag.
331 
332  // "Invisible" flag.
334 
335  // Unknown.
337 
338  // Line weight.
340 
341  // Linetype scale.
343 
344  // Unknown.
346 
347  // Unknown.
349 };
350 
353 
354 #endif //__AECMVBLOCKATTRIBUTE_H__
#define AEC_DECLARE_MEMBERS(ClassName)
Definition: AECMacros.h:54
AECSubPtr< AECMvBlockAttribute > AECMvBlockAttributeSubPtr
OdSmartPtr< AECMvBlockAttribute > AECMvBlockAttributePtr
short OdInt16
unsigned short OdUInt16
OdDbObjectId GetLinetype() const
void SetTextStyle(const OdDbObjectId &idTextStyle)
double GetRotation() const
OdDb::TextHorzMode m_eHorizotalAlignment
void SetNormal(const OdGeVector3d &vNormal)
void SetThickness(double dThickness)
OdDb::LineWeight GetLineWeight() const
void SetAlignmentPoint(const OdGePoint3d &ptPoint)
bool IsUpsideDown() const
bool IsInvisible() const
OdDb::TextHorzMode GetTextHorzAlignment() const
OdDb::TextVertMode GetTextVertAlignment() const
const OdString & GetPrompt() const
const OdGeVector3d & GetNormal() const
const OdCmColor & GetColor() const
void SetWidthFactor(double dFactor)
void SetLineWeight(OdDb::LineWeight eLineWeight)
OdDb::TextVertMode m_eVerticalAlignment
bool IsBackward() const
const OdString & GetTag() const
double GetThickness() const
OdDbObjectId GetTextStyle() const
void SetTextHorzAlignment(OdDb::TextHorzMode eMode)
double GetLinetypeScale() const
const OdGePoint3d & GetPosition() const
double GetHeight() const
void SetLinetype(const OdDbObjectId &idLinetype)
OdDbHardPointerId m_hpidDbLineTypeTableRecord
void SetIsUpsideDown(bool bUpsideDown)
const OdString & GetValue() const
void SetHeight(double dHeight)
void SetPosition(const OdGePoint3d &ptPos)
double GetOblique() const
void SetIsBackward(bool bBackward)
void SetLinetypeScale(double dScale)
void SetColor(const OdCmColor &cColor)
void SetLayer(const OdDbObjectId &idLayer)
void SetOblique(double dOblique)
void SetTag(const OdString &strTag)
void SetPrompt(const OdString &strPrompt)
OdDbObjectId GetLayer() const
void SetRotation(double dRotation)
OdDbHardPointerId m_hpidDbTextStyleTableRecord
const OdGePoint3d & GetAlignmentPoint() const
void SetValue(const OdString &strValue)
void SetTextVertAlignment(OdDb::TextVertMode eMode)
OdGeVector3d m_vExtrusionDirection
void SetIsInvisible(bool bInvisible)
OdDbHardPointerId m_hpidDbLayerTableRecord
OdDbHardPointerId m_hpidUnknown01
double GetWidthFactor() const
OdDb::LineWeight m_eLineWeight
TextHorzMode
Definition: TextDefs.h:35
TextVertMode
Definition: TextDefs.h:45
LineWeight
Definition: OdaDefs.h:384