X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchAPI%2FSketchAPI_Rotation.h;h=199b0250f626cb5d325e23202356902ad23f41c1;hb=099946a7d91982c9a2c4ca2ccdd934320f196413;hp=e5a3281b4531fa462ffb8366d8925c50f85f39ae;hpb=f98f887290d4e2b4bd6618389911e82b6b9674f3;p=modules%2Fshaper.git diff --git a/src/SketchAPI/SketchAPI_Rotation.h b/src/SketchAPI/SketchAPI_Rotation.h index e5a3281b4..199b0250f 100644 --- a/src/SketchAPI/SketchAPI_Rotation.h +++ b/src/SketchAPI/SketchAPI_Rotation.h @@ -1,5 +1,6 @@ +// 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 @@ -9,12 +10,14 @@ //-------------------------------------------------------------------------------------- #include "SketchAPI.h" +#include "SketchAPI_SketchEntity.h" #include #include -#include "SketchAPI_SketchEntity.h" +#include +#include //-------------------------------------------------------------------------------------- class ModelAPI_Object; class ModelHighAPI_Double; @@ -25,7 +28,7 @@ class ModelHighAPI_RefAttr; * \ingroup CPPHighAPI * \brief Interface for Rotation feature */ -class SketchAPI_Rotation : public SketchAPI_SketchEntity +class SketchAPI_Rotation : public ModelHighAPI_Interface { public: /// Constructor without values @@ -44,15 +47,28 @@ public: 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 > rotated() const; + + /// Dump wrapped feature + virtual void dump(ModelHighAPI_Dumper& theDumper) const; }; //! Pointer on Rotation object