CFx SDK Documentation  2020SP3
EdBaseUserIO.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 _EDBASEUSERIO_H_INCLUDED_
25 #define _EDBASEUSERIO_H_INCLUDED_
26 
27 #include "OdPlatform.h"
28 #include "Ed/EdUserIO.h"
29 #include "SSet.h"
30 #include "TD_PackPush.h"
31 
32 class OdSelectionSet;
33 class OdGsModel;
34 
39 {
40 public:
42 
43  virtual bool append(OdDbStub* id, const OdDbSelectionMethod* pMethod) = 0;
44  virtual bool remove(OdDbStub* id, const OdDbSelectionMethod* pMethod) = 0;
45 };
46 
48 
55 {
56 public:
58 
59  virtual OdGePoint3d getLASTPOINT() const = 0;
60 
61  virtual void setLASTPOINT(const OdGePoint3d& pt) = 0;
62 
64  OdGsModel* pModel = NULL) const = 0;
65 
67  OdGsModel* pModel = NULL) const = 0;
68 
84  virtual OdGePoint3d getPoint(const OdString& prompt,
85  int options = OdEd::kGptDefault,
86  const OdGePoint3d* pDefaultValue = 0,
87  const OdString& keywords = OdString::kEmpty,
88  OdEdPointTracker* pTracker = 0) = 0;
89 
108  virtual double getAngle(const OdString& prompt,
109  int options = OdEd::kInpDefault,
110  double defaultValue = 0.0,
111  const OdString& keywords = OdString::kEmpty,
112  OdEdRealTracker* pTracker = 0) = 0;
113 
129  virtual double getDist(const OdString& prompt,
130  int options = OdEd::kInpDefault,
131  double defaultValue = 0.0,
132  const OdString& keywords = OdString::kEmpty,
133  OdEdRealTracker* pTracker = 0) = 0;
134 };
139 
140 #include "TD_PackPop.h"
141 #endif //#ifndef _EDBASEUSERIO_H_INCLUDED_
OdEdInputTracker
Definition: EdUserIO.h:139
FIRSTDLL_EXPORT
#define FIRSTDLL_EXPORT
Definition: RootExport.h:39
OdEdBaseUserIO::createRubberBand
virtual OdEdPointDefTrackerPtr createRubberBand(const OdGePoint3d &base, OdGsModel *pModel=NULL) const =0
OdString
Definition: OdString.h:95
NULL
#define NULL
Definition: GsProperties.h:177
SSet.h
OdPlatform.h
OdEdBaseUserIO::getLASTPOINT
virtual OdGePoint3d getLASTPOINT() const =0
OdEdUserIO
Definition: EdUserIO.h:346
OdSSetTracker::remove
virtual bool remove(OdDbStub *id, const OdDbSelectionMethod *pMethod)=0
TD_PackPop.h
OdEdBaseUserIO
Definition: EdBaseUserIO.h:55
OdEdBaseUserIOPtr
OdSmartPtr< OdEdBaseUserIO > OdEdBaseUserIOPtr
Definition: EdBaseUserIO.h:138
EdUserIO.h
OdSmartPtr
Definition: SmartPtr.h:58
OdEdBaseUserIO::createRectFrame
virtual OdEdPointDefTrackerPtr createRectFrame(const OdGePoint3d &base, OdGsModel *pModel=NULL) const =0
OdGePoint3d
Definition: GePoint3d.h:55
OdEdBaseUserIO::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdEdBaseUserIO)
OdEdPointTracker
Definition: EdUserIO.h:215
OdEdBaseUserIO::getAngle
virtual double getAngle(const OdString &prompt, int options=OdEd::kInpDefault, double defaultValue=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0)=0
TD_PackPush.h
OdEdBaseUserIO::getDist
virtual double getDist(const OdString &prompt, int options=OdEd::kInpDefault, double defaultValue=0.0, const OdString &keywords=OdString::kEmpty, OdEdRealTracker *pTracker=0)=0
OdSelectionSet
Definition: SSet.h:165
ODRX_ABSTRACT
#define ODRX_ABSTRACT
Definition: OdPlatformSettings.h:117
OdEd::kInpDefault
@ kInpDefault
Definition: EdUserIO.h:47
OdEdBaseUserIO::setLASTPOINT
virtual void setLASTPOINT(const OdGePoint3d &pt)=0
OdSSetTracker
Definition: EdBaseUserIO.h:39
OdDbSelectionMethod
Definition: SSet.h:39
OdString::kEmpty
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
OdEdRealTracker
Definition: EdUserIO.h:176
OdGsModel
Definition: GsModel.h:77
OdSSetTrackerPtr
OdSmartPtr< OdSSetTracker > OdSSetTrackerPtr
Definition: EdBaseUserIO.h:47
OdSSetTracker::append
virtual bool append(OdDbStub *id, const OdDbSelectionMethod *pMethod)=0
OdEdBaseUserIO::getPoint
virtual OdGePoint3d getPoint(const OdString &prompt, int options=OdEd::kGptDefault, const OdGePoint3d *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdPointTracker *pTracker=0)=0
OdEd::kGptDefault
@ kGptDefault
Definition: EdUserIO.h:73
OdSSetTracker::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdSSetTracker)