CFx SDK Documentation  2023 SP0
DbBlockActions.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 _DbBlocksActions_h_Included_
25 #define _DbBlocksActions_h_Included_
26 
27 #include "DbEvalGraph.h"
28 #include "Ge/GePoint2dArray.h"
29 #include "DbBlockElement.h"
30 #include "DbBlockParameter.h"
31 
40 {
41 public:
42  enum OdDbBlockActionXYType{ XY, X, Y }; // not sure if the enum is the same in scale and polar stretch actions
44  virtual OdGePoint3d displayLocation() const;
45  virtual void setDisplayLocation( const OdGePoint3d& );
48 
51  //virtual void setSelectionSet( const OdDbObjectIdArray& );
52 };
53 
54 
63 {
64 public:
67  //FELIX_CHANGE_BEGIN
68  double angleOffset();
71  void setAngleOffset(double);
72  void setDistanceMultiplier(double);
74  //FELIX_CHANGE_END
75 };
76 
85 {
86 public:
89  //FELIX_CHANGE_BEGIN
90  double angleOffset()const;
91  double distanceMultiplier()const;
93  void setAngleOffset(double);
94  void setDistanceMultiplier(double);
100  //FELIX_CHANGE_END
101 };
102 
111 {
112 public:
114  //FELIX_CHANGE_BEGIN
118  bool dependent() const;
119  void setBasePoint(OdGePoint3d const &);
122  void setDependent(bool);
123  //FELIX_CHANGE_END
124 };
125 
134 {
135 public:
138  //FELIX_CHANGE_BEGIN
141  //FELIX_CHANGE_END
142 };
143 
152 {
153 public:
156 };
157 
166 {
167 public:
170 };
171 
180 {
181 public:
184  //FELIX_CHANGE_BEGIN
185  double columnOffset() const;
186  double rowOffset() const;
187  void setColumnOffset(double);
188  void setRowOffset(double);
189  //FELIX_CHANGE_END
190 };
191 
192 class OdDbDataTable;
194 
203 {
204 public:
207  //bool duplicateCellsInLookupColumn(int,int *);
208  //bool duplicateCellsInLookupColumn( const OdResBufArray&, const OdArray<void*>&,int,int *);
209  //bool duplicateRowsOverInputColumns(int *);
210  //bool duplicateRowsOverInputColumns( const OdResBufArray &, const OdArray<void*>&,int *);
211  //OdDbDataTablePtr getLookupTable( OdArray<void*> & );
212 
214  //bool nonSingletonRangeInInputColumns(int *);
215  //bool nonSingletonRangeInInputColumns( const OdResBufArray &,const OdArray<void*>&,int *);
216  //bool nullsInInputColumns(int *);
217  //bool nullsInInputColumns( const OdResBufArray&, const OdArray<void*>&,int *);
218 
223  //void setLookupTable( const OdResBufArray &, OdArray<void*> const &);
224  //void setLookupTable( const OdDbDataTable *, OdArray<void*>&);
225 };
227 
236 {
237 public:
240  //FELIX_CHANGE_BEGIN
241  double angleOffset() const;
242  double distanceMultiplier() const;
245  void setAngleOffset(double);
246  void setDistanceMultiplier(double);
247  //void setRotateOnlySelectionSet(const OdDbObjectIdArray&);
248  //void setStretchFrame(const OdGePoint2dArray &);
252  //FELIX_CHANGE_END
253 };
254 
255 #endif // _DbBlocksActions_h_Included_
OdSmartPtr< OdDbBlockLookupAction > OdDbBlockLookupActionPtr
OdSmartPtr< OdDbDataTable > OdDbDataTablePtr
#define DYNBLOCKS_EXPORT
Definition: DbEvalGraph.h:91
unsigned long OdDbEvalNodeId
Definition: DbEvalGraph.h:60
unsigned int OdUInt32
#define X
Definition: ads2drx.h:32
#define Y
Definition: ads2drx.h:33
virtual OdGePoint3d displayLocation() const
virtual OdDbObjectIdArray selectionSet() const
virtual void setDisplayLocation(const OdGePoint3d &)
virtual OdDbBlockParameterPtr getAssociatedParameter(OdDb::OpenMode mode=OdDb::kForRead) const
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockAction)
OdDbObjectIdArray elementSelectionSet() const
virtual OdDbEvalNodeId drivingParameterNodeId() const
void setBasePoint(OdGePoint3d const &)
void setBasePointOffset(OdGeVector3d const &)
void setCurrentBasePoint(OdGePoint3d const &)
OdGeVector3d basePointOffset() const
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockActionWithBasePt)
OdGePoint3d currentBasePoint() const
OdGePoint3d basePoint() const
double columnOffset() const
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockArrayAction)
void setColumnOffset(double)
double rowOffset() const
void setRowOffset(double)
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockFlipAction)
OdUInt32 numberOfColumns() const
void getLookupTable(OdResBufArray &, OdArray< void * > &)
OdUInt32 numberOfOutputColumns() const
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockLookupAction)
OdUInt32 numberOfInputColumns() const
OdUInt32 numberOfRows() const
void setDistanceType(OdDbBlockActionXYType)
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockMoveAction)
void setAngleOffset(double)
OdDbBlockActionXYType distanceType()
void setDistanceMultiplier(double)
double distanceMultiplier()
OdDbObjectIdArray rotateOnlyElementSelectionSet()
void setDistanceMultiplier(double)
OdDbObjectIdArray rotateOnlySelectionSet()
double distanceMultiplier() const
OdArray< std::pair< OdDbEvalNodeId, OdIntArray > > stretchElementsSelectionSet() const
OdArray< std::pair< OdDbObjectId, OdIntArray > > stretchEntitiesSelectionSet() const
OdGePoint2dArray stretchFrame()
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockPolarStretchAction)
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockRotateAction)
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockScaleAction)
void setScaleType(OdDbBlockActionXYType)
OdDbBlockActionXYType scaleType() const
void setStretchFrame(const OdGePoint2dArray &)
double angleOffset() const
void setDistanceMultiplier(double)
OdArray< std::pair< OdDbObjectId, OdIntArray > > stretchEntitiesSelectionSet() const
double distanceMultiplier() const
OdArray< std::pair< OdDbEvalNodeId, OdIntArray > > stretchElementsSelectionSet() const
OdDbBlockActionXYType distanceType() const
void setAngleOffset(double)
void setDistanceType(OdDbBlockActionXYType)
OdGePoint2dArray stretchFrame() const
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockStretchAction)
OpenMode
Definition: DbObjectId.h:54
@ kForRead
Definition: DbObjectId.h:56