+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
// Name : SketchAPI_Rotation.h
-// Purpose:
+// Purpose:
//
// History:
// 16/06/16 - Sergey POKHODENKO - Creation of the file
//--------------------------------------------------------------------------------------
#include "SketchAPI.h"
+#include "SketchAPI_SketchEntity.h"
#include <list>
#include <SketchPlugin_MultiRotation.h>
-#include "SketchAPI_SketchEntity.h"
+#include <ModelHighAPI_Interface.h>
+#include <ModelHighAPI_Macro.h>
//--------------------------------------------------------------------------------------
class ModelAPI_Object;
class ModelHighAPI_Double;
* \ingroup CPPHighAPI
* \brief Interface for Rotation feature
*/
-class SketchAPI_Rotation : public SketchAPI_SketchEntity
+class SketchAPI_Rotation : public ModelHighAPI_Interface
{
public:
/// Constructor without values
virtual ~SketchAPI_Rotation();
INTERFACE_7(SketchPlugin_MultiRotation::ID(),
- rotationList, SketchPlugin_MultiRotation::ROTATION_LIST_ID(), ModelAPI_AttributeRefList, /** Rotation list */,
- center, SketchPlugin_MultiRotation::CENTER_ID(), ModelAPI_AttributeRefAttr, /** Center */,
- angle, SketchPlugin_MultiRotation::ANGLE_ID(), ModelAPI_AttributeDouble, /** Angle */,
- numberOfObjects, SketchPlugin_MultiRotation::NUMBER_OF_OBJECTS_ID(), ModelAPI_AttributeInteger, /** Number of objects */,
- valueType, SketchPlugin_MultiRotation::ANGLE_TYPE(), ModelAPI_AttributeString, /** Value type */,
- referenceObjects, SketchPlugin_MultiRotation::ENTITY_A(), ModelAPI_AttributeRefList, /** Reference objects */,
- rotatedObjects, SketchPlugin_MultiRotation::ENTITY_B(), ModelAPI_AttributeRefList, /** Rotated objects */
+ rotationList, SketchPlugin_MultiRotation::ROTATION_LIST_ID(),
+ ModelAPI_AttributeRefList, /** Rotation list */,
+ center, SketchPlugin_MultiRotation::CENTER_ID(),
+ ModelAPI_AttributeRefAttr, /** Center */,
+ angle, SketchPlugin_MultiRotation::ANGLE_ID(),
+ ModelAPI_AttributeDouble, /** Angle */,
+ numberOfObjects, SketchPlugin_MultiRotation::NUMBER_OF_OBJECTS_ID(),
+ ModelAPI_AttributeInteger, /** Number of objects */,
+ valueType, SketchPlugin_MultiRotation::ANGLE_TYPE(),
+ ModelAPI_AttributeString, /** Value type */,
+ referenceObjects, SketchPlugin_MultiRotation::ENTITY_A(),
+ ModelAPI_AttributeRefList, /** Reference objects */,
+ rotatedObjects, SketchPlugin_MultiRotation::ENTITY_B(),
+ ModelAPI_AttributeRefList, /** Rotated objects */
)
+ /// List of rotated objects
+ SKETCHAPI_EXPORT
+ std::list<std::shared_ptr<SketchAPI_SketchEntity> > rotated() const;
+
+ /// Dump wrapped feature
+ virtual void dump(ModelHighAPI_Dumper& theDumper) const;
};
//! Pointer on Rotation object