Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update the names of Regions and Zones if case name changed (Bug #110).
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_Polyline.h
diff --git
a/src/HYDROData/HYDROData_Polyline.h
b/src/HYDROData/HYDROData_Polyline.h
index b5ce157efc26ef3f4c4113b3ac79d5882ee3d196..53395cd813cb79460818615884a6b57282fc68ac 100755
(executable)
--- a/
src/HYDROData/HYDROData_Polyline.h
+++ b/
src/HYDROData/HYDROData_Polyline.h
@@
-13,7
+13,7
@@
class TopoDS_Wire;
DEFINE_STANDARD_HANDLE(HYDROData_Polyline, HYDROData_Object)
DEFINE_STANDARD_HANDLE(HYDROData_Polyline, HYDROData_Object)
-struct PolylineSection
+struct
HYDRODATA_EXPORT
PolylineSection
{
public:
enum SectionType{ SECTION_POLYLINE=0, SECTION_SPLINE=1 };
{
public:
enum SectionType{ SECTION_POLYLINE=0, SECTION_SPLINE=1 };
@@
-48,7
+48,6
@@
protected:
DataTag_SectionsClosed,
DataTag_SectionsSize,
DataTag_SectionsType,
DataTag_SectionsClosed,
DataTag_SectionsSize,
DataTag_SectionsType,
- DataTag_Wire,
DataTag_ZValue
};
DataTag_ZValue
};
@@
-60,6
+59,16
@@
public:
*/
HYDRODATA_EXPORT virtual const ObjectKind GetKind() const {return KIND_POLYLINE;}
*/
HYDRODATA_EXPORT virtual const ObjectKind GetKind() const {return KIND_POLYLINE;}
+ /**
+ * Returns the top shape of the object.
+ */
+ HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const;
+
+ /**
+ * Returns the 3d shape of the object.
+ */
+ HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
+
/**
* Dump object to Python script representation.
*/
/**
* Dump object to Python script representation.
*/
@@
-75,56
+84,47
@@
public:
* Replace current polyline data by new sections list
* \param theSections the sections list
*/
* Replace current polyline data by new sections list
* \param theSections the sections list
*/
- HYDRODATA_EXPORT void
s
etPolylineData( const PolylineData& theSections );
+ HYDRODATA_EXPORT void
S
etPolylineData( const PolylineData& theSections );
/**
* Return polyline data
* \return polyline section list
*/
/**
* Return polyline data
* \return polyline section list
*/
- HYDRODATA_EXPORT PolylineData
g
etPolylineData() const;
+ HYDRODATA_EXPORT PolylineData
G
etPolylineData() const;
/**
* Returns true if polyline is closed
*/
/**
* Returns true if polyline is closed
*/
- HYDRODATA_EXPORT bool
i
sClosed() const;
+ HYDRODATA_EXPORT bool
I
sClosed() const;
/**
* Return polyline dimension
* \return polyline dimension (2 or 3)
*/
/**
* Return polyline dimension
* \return polyline dimension (2 or 3)
*/
- HYDRODATA_EXPORT int
g
etDimension() const;
+ HYDRODATA_EXPORT int
G
etDimension() const;
/**
* Set polyline dimension (2 or 3)
* \param theDimension the polyline dimension
*/
/**
* Set polyline dimension (2 or 3)
* \param theDimension the polyline dimension
*/
- HYDRODATA_EXPORT void
s
etDimension( int theDimension );
+ HYDRODATA_EXPORT void
S
etDimension( int theDimension );
/**
* Remove all sections from polyline
*/
/**
* Remove all sections from polyline
*/
- HYDRODATA_EXPORT void
r
emoveAll();
+ HYDRODATA_EXPORT void
R
emoveAll();
/**
* Returns the painter path.
* Note: currently only the first section of the polyline data is taken into account.
*/
/**
* Returns the painter path.
* Note: currently only the first section of the polyline data is taken into account.
*/
- HYDRODATA_EXPORT QPainterPath
p
ainterPath() const;
+ HYDRODATA_EXPORT QPainterPath
GetP
ainterPath() const;
- HYDRODATA_EXPORT void SetZValue( const double theZValue );
+ HYDRODATA_EXPORT void
SetZValue( const double theZValue );
HYDRODATA_EXPORT double ZValue() const;
HYDRODATA_EXPORT double ZValue() const;
- /**
- * Sets the wire contour of the object.
- */
- HYDRODATA_EXPORT void SetWire( const TopoDS_Wire& theWire );
-
- /**
- * Returns the wire contour of the object.
- */
- HYDRODATA_EXPORT TopoDS_Wire Wire() const;
-
protected:
protected:
+
/**
* Update the wire contour on the basis of the polyline data.
*/
/**
* Update the wire contour on the basis of the polyline data.
*/
@@
-138,12
+138,12
@@
protected:
* Creates new object in the internal data structure. Use higher level objects
* to create objects with real content.
*/
* Creates new object in the internal data structure. Use higher level objects
* to create objects with real content.
*/
- HYDROData_Polyline();
+ HYDROD
ATA_EXPORT HYDROD
ata_Polyline();
/**
* Destructs properties of the object and object itself, removes it from the document.
*/
/**
* Destructs properties of the object and object itself, removes it from the document.
*/
- ~HYDROData_Polyline();
+
HYDRODATA_EXPORT
~HYDROData_Polyline();
};
#endif
};
#endif