Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comments of the code.
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_ViewerPrs.h
diff --git
a/src/ModuleBase/ModuleBase_ViewerPrs.h
b/src/ModuleBase/ModuleBase_ViewerPrs.h
index 419447edb1096006ce2c438123e49df921dd9a14..71f2cd627da5cd1c1ccb8837ef76c5f4e4b14200 100644
(file)
--- a/
src/ModuleBase/ModuleBase_ViewerPrs.h
+++ b/
src/ModuleBase/ModuleBase_ViewerPrs.h
@@
-20,80
+20,80
@@
* \ingroup GUI
* \brief Presentation. Provides container to have feature, shape and/or selection owner.
*/
* \ingroup GUI
* \brief Presentation. Provides container to have feature, shape and/or selection owner.
*/
-class M
ODULEBASE_EXPORT M
oduleBase_ViewerPrs
+class ModuleBase_ViewerPrs
{
public:
/// Constructor
{
public:
/// Constructor
- ModuleBase_ViewerPrs();
+ M
ODULEBASE_EXPORT M
oduleBase_ViewerPrs();
/// Constructor
/// \param theResult an object
/// \param theShape a viewer shape
/// \param theOwner a selection owner
/// Constructor
/// \param theResult an object
/// \param theShape a viewer shape
/// \param theOwner a selection owner
- ModuleBase_ViewerPrs(ObjectPtr theResult, const TopoDS_Shape& theShape,
+ M
ODULEBASE_EXPORT M
oduleBase_ViewerPrs(ObjectPtr theResult, const TopoDS_Shape& theShape,
Handle_SelectMgr_EntityOwner theOwner);
/// Destructor
Handle_SelectMgr_EntityOwner theOwner);
/// Destructor
- virtual ~ModuleBase_ViewerPrs();
+
MODULEBASE_EXPORT
virtual ~ModuleBase_ViewerPrs();
/// Sets the object.
/// \param theResult an object instance
/// Sets the object.
/// \param theResult an object instance
- void setObject(ObjectPtr theResult)
+
MODULEBASE_EXPORT
void setObject(ObjectPtr theResult)
{
myResult = theResult;
}
/// Returns the feature.
/// \return a feature instance
{
myResult = theResult;
}
/// Returns the feature.
/// \return a feature instance
- ObjectPtr object() const
+
MODULEBASE_EXPORT
ObjectPtr object() const
{
return myResult;
}
/// Set the presentation owner
/// \param theOwner an owner to set
{
return myResult;
}
/// Set the presentation owner
/// \param theOwner an owner to set
- void setOwner(Handle_SelectMgr_EntityOwner theOwner)
+
MODULEBASE_EXPORT
void setOwner(Handle_SelectMgr_EntityOwner theOwner)
{
myOwner = theOwner;
}
/// Returns the presentation owner
/// \return an owner
{
myOwner = theOwner;
}
/// Returns the presentation owner
/// \return an owner
- Handle_SelectMgr_EntityOwner owner() const
+
MODULEBASE_EXPORT
Handle_SelectMgr_EntityOwner owner() const
{
return myOwner;
}
/// Sets the shape
/// \param theShape a shape instance
{
return myOwner;
}
/// Sets the shape
/// \param theShape a shape instance
- void setShape(const TopoDS_Shape& theShape)
+
MODULEBASE_EXPORT
void setShape(const TopoDS_Shape& theShape)
{
myShape = theShape;
}
/// Returns the shape
/// \return a shape instance
{
myShape = theShape;
}
/// Returns the shape
/// \return a shape instance
- const TopoDS_Shape& shape() const
+
MODULEBASE_EXPORT
const TopoDS_Shape& shape() const
{
return myShape;
}
/// Set interactive object
/// \param theIO an interactive object
{
return myShape;
}
/// Set interactive object
/// \param theIO an interactive object
- void setInteractive(const Handle(AIS_InteractiveObject)& theIO)
+
MODULEBASE_EXPORT
void setInteractive(const Handle(AIS_InteractiveObject)& theIO)
{
myInteractive = theIO;
}
/// Returns interactive object if it is installed
{
myInteractive = theIO;
}
/// Returns interactive object if it is installed
- Handle(AIS_InteractiveObject) interactive() const
+
MODULEBASE_EXPORT
Handle(AIS_InteractiveObject) interactive() const
{
return myInteractive;
}
/// Returns true if all presentation fields are empty
/// \return boolean value
{
return myInteractive;
}
/// Returns true if all presentation fields are empty
/// \return boolean value
- bool isEmpty() const
+
MODULEBASE_EXPORT
bool isEmpty() const
{
return myShape.IsNull() &&
myOwner.IsNull() && !myResult.get();
{
return myShape.IsNull() &&
myOwner.IsNull() && !myResult.get();
@@
-101,7
+101,7
@@
class MODULEBASE_EXPORT ModuleBase_ViewerPrs
/// Returns True if the current object is equal to the given one
/// \param thePrs an object to compare
/// Returns True if the current object is equal to the given one
/// \param thePrs an object to compare
- bool operator==(const ModuleBase_ViewerPrs& thePrs)
+
MODULEBASE_EXPORT
bool operator==(const ModuleBase_ViewerPrs& thePrs)
{
bool aResult = (myResult.get() == thePrs.object().get());
bool aOwner = (myOwner.Access() == thePrs.owner().Access());
{
bool aResult = (myResult.get() == thePrs.object().get());
bool aOwner = (myOwner.Access() == thePrs.owner().Access());