CFx SDK Documentation  2023 SP0
AECGrPoint.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 #ifndef __AECGR_POINT_H__
24 #define __AECGR_POINT_H__
25 
26 #include "Grips/AECGr.h"
27 #include "Grips/AECGrConstraint.h"
28 #include <DbGrip.h>
29 
34 class AECBASE_API AECGrPoint
35 {
36  public:
41 
45  const OdGeMatrix3d& point() const;
46 
50  void setPoint( const OdGePoint3d& pt );
51  void setPoint( const OdGePoint3d& pt,
52  const OdGeVector3d& vXAxis );
53  void setPoint( const OdGePoint3d& pt,
54  const OdGeVector3d& vXAxis, const OdGeVector3d& vYAxis );
55 
60 
64  void setGlyph( AECGr::Glyph eGlyph );
65 
69  OdString tooltip() const;
70 
74  void setTooltip( const OdString& strTooltip );
75 
79  OdUInt32 modeCnt() const;
80 
84  OdString modeName( OdUInt32 iMode = 0 ) const;
85 
90 
94  void setSingleMode( AECGripConstraintPtr pConstraint );
95 
99  void setSingleMode( const OdString& strModeName,
100  AECGripConstraintPtr pConstraint );
101 
105  void appendMode( AECGripConstraintPtr pConstraint );
106 
110  void appendMode( const OdString& strName,
111  AECGripConstraintPtr pConstraint );
112 
113  public:
117  const OdGeVector3d& alternativeDir() const;
118 
122  void setAlternativeDir( const OdGeVector3d& vDir );
123 
127  bool trigger() const;
128 
132  void setTrigger( bool bTrigger );
133 
137  void* appData() const;
138 
142  void setAppData( void* pData );
143 
144  public:
147  void transformBy( const OdGeMatrix3d& mTransform );
148 
149  private:
150  OdGeMatrix3d m_mOrientedPoint;
151  OdGeVector3d m_vAltDir;
152  AECGr::Glyph m_eGlyph;
153  bool m_bTrigger;
154  OdString m_strTooltip;
155  void* m_pAppData;
156  std::vector<AECGripConstraintPtr> m_aConstraints;
157  std::vector<OdString> m_aModeNames;
158  OdUInt32 m_iModeCnt;
159 };
160 
161 /*
162 class AECDbGripData : public OdDbGripData
163 {
164  ODRX_DECLARE_MEMBERS( AECDbGripData );
165 
166  protected:
167  AECDbGripData();
168 
169  public:
170  OdGePoint3d gripPoint() const;
171 
172  bool alternateBasePoint( OdGePoint3d& res ) const;
173 
174  void status( const OdDbObjectId& entId,
175  OdDbGripOperations::GripStatus status ) const;
176 
177  bool toolTip( OdString& ) const;
178 
179  unsigned int bitFlags() const;
180 
181  OdResult hot( const OdDbObjectId& entId,
182  int iContextFlags );
183 
184  OdResult hover( const OdDbObjectId& entId, int iContextFlags );
185 
186  DrawStatus worldDraw(
187  OdGiWorldDraw*,
188  const OdDbObjectId&,
189  OdDbGripOperations::DrawType,
190  OdGePoint3d*,
191  double ) const;
192 
193  void viewportDraw(
194  OdGiViewportDraw* pVd,
195  const OdDbObjectId& entId,
196  OdDbGripOperations::DrawType type,
197  OdGePoint3d* imageGripPoint,
198  int gripSize ) const;
199 
200  public:
201  void set( const AECGrPoint& pt, bool bAlt, const OdGePoint3d& ptAlt );
202 
203  public:
204  bool m_bAlt;
205  OdGePoint3d m_ptAlt;
206  AECGrPoint m_pt;
207 };
208 typedef OdSmartPtr<AECDbGripData> AECDbGripDataPtr;
209 */
210 
211 #endif // __AECGR_POINT_H__
unsigned int OdUInt32
void setTooltip(const OdString &strTooltip)
const OdGeVector3d & alternativeDir() const
void setGlyph(AECGr::Glyph eGlyph)
OdUInt32 modeCnt() const
void setSingleMode(AECGripConstraintPtr pConstraint)
void setSingleMode(const OdString &strModeName, AECGripConstraintPtr pConstraint)
void * appData() const
void setAlternativeDir(const OdGeVector3d &vDir)
void setPoint(const OdGePoint3d &pt, const OdGeVector3d &vXAxis)
AECGripConstraintPtr modeConstraint(OdUInt32 iMode=0) const
void appendMode(const OdString &strName, AECGripConstraintPtr pConstraint)
void appendMode(AECGripConstraintPtr pConstraint)
bool trigger() const
void setTrigger(bool bTrigger)
AECGr::Glyph glyph() const
OdString tooltip() const
OdString modeName(OdUInt32 iMode=0) const
const OdGeMatrix3d & point() const
void transformBy(const OdGeMatrix3d &mTransform)
void setPoint(const OdGePoint3d &pt, const OdGeVector3d &vXAxis, const OdGeVector3d &vYAxis)
void setAppData(void *pData)
void setPoint(const OdGePoint3d &pt)
Glyph
Definition: AECGr.h:37