+// File: PartSet_OperationSketch.h
+// Created: 20 Apr 2014
+// Author: Natalia ERMOLAEVA
+
#include <PartSet_OperationSketch.h>
#include <SketchPlugin_Feature.h>
{
}
-/*!
- * \brief Destructor
- */
PartSet_OperationSketch::~PartSet_OperationSketch()
{
}
-/**
- * The sketch can not be created immediately, firstly a plane should be set
- * \return false value
- */
bool PartSet_OperationSketch::isPerformedImmediately() const
{
return false;
+// File: PartSet_OperationSketch.h
+// Created: 20 Apr 2014
+// Author: Natalia ERMOLAEVA
+
#ifndef PartSet_OperationSketch_H
#define PartSet_OperationSketch_H
/*!
\class PartSet_OperationSketch
- * \brief The operation for the sketch creation
- *
- * Base class for all operations. If you perform an action it is reasonable to create
+ * \brief The operation for the sketch feature creation
*/
class PARTSET_EXPORT PartSet_OperationSketch : public PartSet_OperationSketchBase
{
-Q_OBJECT
+ Q_OBJECT
public:
+ /// Constructor
+ /// \param theId the feature identifier
+ /// \param theParent the operation parent
PartSet_OperationSketch(const QString& theId, QObject* theParent);
+ /// Destructor
virtual ~PartSet_OperationSketch();
+ /// The sketch can not be created immediately, firstly a plane should be set
virtual bool isPerformedImmediately() const;
};
+// File: PartSet_OperationSketchBase.cpp
+// Created: 20 Apr 2014
+// Author: Natalia ERMOLAEVA
+
#include <PartSet_OperationSketchBase.h>
#include <SketchPlugin_Feature.h>
using namespace std;
-/*!
- \brief Constructor
- \param theId an feature index
- \param theParent the object parent
- */
PartSet_OperationSketchBase::PartSet_OperationSketchBase(const QString& theId,
QObject* theParent)
: ModuleBase_PropPanelOperation(theId, theParent)
{
}
-/*!
- * \brief Destructor
- */
PartSet_OperationSketchBase::~PartSet_OperationSketchBase()
{
}
-/**
- * Returns the feature preview shape
- */
const TopoDS_Shape& PartSet_OperationSketchBase::preview() const
{
boost::shared_ptr<SketchPlugin_Feature> aFeature =
boost::dynamic_pointer_cast<SketchPlugin_Feature>(feature());
return aFeature->preview()->impl<TopoDS_Shape>();
}
-
-/*!
- * Perform the operation start and emit signal about visualization of the operation preview
- */
-void PartSet_OperationSketchBase::startOperation()
-{
- ModuleBase_PropPanelOperation::startOperation();
-
- emit visualizePreview(true);
-}
-
-/*!
- * Perform the operation stop and emit signal about visualization stop of the operation preview
- */
-void PartSet_OperationSketchBase::stopOperation()
-{
- ModuleBase_PropPanelOperation::stopOperation();
-
- emit visualizePreview(false);
-}
+// File: PartSet_OperationSketchBase.h
+// Created: 20 Apr 2014
+// Author: Natalia ERMOLAEVA
+
#ifndef PartSet_OperationSketchBase_H
#define PartSet_OperationSketchBase_H
#include <QObject>
/*!
- \class PartSet_OperationSketchBase
- * \brief The base operation for the sketch features.
- *
- * Base class for all sketch operations. It provides an access to the feature preview
+ \class PartSet_OperationSketchBase
+ * \brief The base operation for the sketch features.
+ * Base class for all sketch operations. It provides an access to the feature preview
*/
class PARTSET_EXPORT PartSet_OperationSketchBase : public ModuleBase_PropPanelOperation
{
-Q_OBJECT
+ Q_OBJECT
public:
+ /// Constructor
+ /// \param theId an feature index
+ /// \param theParent the object parent
PartSet_OperationSketchBase(const QString& theId, QObject* theParent);
+ /// Destructor
virtual ~PartSet_OperationSketchBase();
+ /// Returns the feature preview shape
const TopoDS_Shape& preview() const;
-
-signals:
- /**
- * The signal about preview visualization.
- * \param isDisplay a state whether the preview should be displayed or erased
- */
- void visualizePreview(bool isDisplay);
-
-protected:
- virtual void startOperation();
- virtual void stopOperation();
};
#endif
-// File: XGUI_Displayer.cxx
+// File: XGUI_Displayer.cpp
// Created: 20 Apr 2014
// Author: Natalia ERMOLAEVA