mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024162: Eliminate CLang compiler warning
Got rid from most cases of appearance '-Wunused-private-field' warning
This commit is contained in:
@@ -195,7 +195,6 @@ fields
|
||||
|
||||
myWire : Wire from TopoDS;
|
||||
myPntAttach : Pnt from gp;
|
||||
haspos : Boolean from Standard;
|
||||
|
||||
end FixRelation;
|
||||
|
||||
|
@@ -91,8 +91,7 @@ AIS_FixRelation::AIS_FixRelation(const TopoDS_Shape& aShape,
|
||||
const Handle(Geom_Plane)& aPlane,
|
||||
const TopoDS_Wire& aWire)
|
||||
:AIS_Relation(),
|
||||
myWire(aWire),
|
||||
haspos(Standard_False)
|
||||
myWire(aWire)
|
||||
{
|
||||
myFShape = aShape;
|
||||
myPlane = aPlane;
|
||||
@@ -111,8 +110,7 @@ AIS_FixRelation::AIS_FixRelation(const TopoDS_Shape& aShape,
|
||||
const gp_Pnt& aPosition,
|
||||
const Standard_Real anArrowSize)
|
||||
:AIS_Relation(),
|
||||
myWire(aWire),
|
||||
haspos(Standard_False)
|
||||
myWire(aWire)
|
||||
{
|
||||
myFShape = aShape;
|
||||
myPlane = aPlane;
|
||||
@@ -132,8 +130,7 @@ AIS_FixRelation::AIS_FixRelation(const TopoDS_Shape& aShape,
|
||||
//=======================================================================
|
||||
|
||||
AIS_FixRelation::AIS_FixRelation(const TopoDS_Shape& aShape,
|
||||
const Handle(Geom_Plane)& aPlane):
|
||||
haspos(Standard_False)
|
||||
const Handle(Geom_Plane)& aPlane)
|
||||
{
|
||||
myFShape = aShape;
|
||||
myPlane = aPlane;
|
||||
@@ -150,8 +147,7 @@ AIS_FixRelation::AIS_FixRelation(
|
||||
const TopoDS_Shape& aShape,
|
||||
const Handle(Geom_Plane)& aPlane,
|
||||
const gp_Pnt& aPosition,
|
||||
const Standard_Real anArrowSize):
|
||||
haspos(Standard_False)
|
||||
const Standard_Real anArrowSize)
|
||||
{
|
||||
myFShape = aShape;
|
||||
myPlane = aPlane;
|
||||
|
@@ -152,7 +152,6 @@ is
|
||||
|
||||
fields
|
||||
myName : AsciiString from TCollection;
|
||||
mycuri : Integer from Standard;
|
||||
-- SAV : OCC189 myresult : HArray1OfTransient from TColStd;
|
||||
myresult : NListTransient from AIS;
|
||||
myIterator : NListIteratorOfListTransient from AIS;
|
||||
|
@@ -71,7 +71,6 @@ static TColStd_SequenceOfTransient& AIS_Sel_GetSelections()
|
||||
//=======================================================================
|
||||
AIS_Selection::AIS_Selection(const Standard_CString aName) :
|
||||
myName(TCollection_AsciiString(aName)),
|
||||
mycuri(0),
|
||||
#if !defined USE_MAP && !defined OCC189
|
||||
myresult(new TColStd_HArray1OfTransient(1,MaxSizeOfResult)),
|
||||
#endif
|
||||
|
@@ -19,66 +19,37 @@
|
||||
// and conditions governing the rights and limitations under the License.
|
||||
|
||||
|
||||
#define OCC189 //SAV: 18/03/02 array was replaced with list.
|
||||
|
||||
#define USE_MAP //san : 18/04/03 USE_MAP - additional datamap is used to speed up access
|
||||
//SAV: 18/03/02 array was replaced with list.
|
||||
//san : 18/04/03 USE_MAP - additional datamap is used to speed up access
|
||||
//to certain owners in <myresult> list
|
||||
|
||||
#if !defined( OCC189 ) && !defined( USE_MAP )
|
||||
#include <TColStd_HArray1OfTransient.hxx>
|
||||
#else
|
||||
#include <TColStd_MapOfTransient.hxx>
|
||||
#include <TColStd_MapIteratorOfMapOfTransient.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined( OCC189 ) && !defined( USE_MAP )
|
||||
inline const Handle(TColStd_HArray1OfTransient)& AIS_Selection::Objects() const
|
||||
#else
|
||||
inline const AIS_NListTransient& AIS_Selection::Objects() const
|
||||
#endif
|
||||
{
|
||||
return myresult;
|
||||
}
|
||||
|
||||
inline void AIS_Selection::Init()
|
||||
{
|
||||
#if !defined( OCC189 ) && !defined( USE_MAP )
|
||||
mycuri=1;
|
||||
#else
|
||||
myIterator = AIS_NListTransient::Iterator ( myresult );
|
||||
#endif
|
||||
}
|
||||
|
||||
inline Standard_Boolean AIS_Selection::More() const
|
||||
{
|
||||
#if !defined( OCC189 ) && !defined( USE_MAP )
|
||||
return (myresult.IsNull() ? Standard_False : (mycuri<=myNb));
|
||||
#else
|
||||
return myIterator.More();
|
||||
#endif
|
||||
}
|
||||
inline void AIS_Selection::Next () {
|
||||
#if !defined( OCC189 ) && !defined( USE_MAP )
|
||||
mycuri++;
|
||||
#else
|
||||
inline void AIS_Selection::Next ()
|
||||
{
|
||||
myIterator.Next();
|
||||
#endif
|
||||
}
|
||||
inline const Handle(Standard_Transient)& AIS_Selection::Value() const
|
||||
{
|
||||
#if !defined( OCC189 ) && !defined( USE_MAP )
|
||||
return myresult->Value(mycuri);
|
||||
#else
|
||||
return myIterator.Value();
|
||||
#endif
|
||||
}
|
||||
|
||||
inline Standard_Integer AIS_Selection::NbStored() const
|
||||
{
|
||||
#if !defined( OCC189 ) && !defined( USE_MAP )
|
||||
return myNb;
|
||||
#else
|
||||
return myresult.Extent();
|
||||
#endif
|
||||
}
|
||||
|
@@ -257,11 +257,5 @@ fields
|
||||
myDeflection : Real from Standard;
|
||||
myAspect : AspectFillArea3d from Graphic3d;
|
||||
mytexture : Texture2Dmanual from Graphic3d;
|
||||
Umin : Real from Standard;
|
||||
Umax : Real from Standard;
|
||||
Vmin : Real from Standard;
|
||||
Vmax : Real from Standard;
|
||||
dUmax : Real from Standard;
|
||||
dVmax : Real from Standard;
|
||||
myModulate : Boolean from Standard;
|
||||
end TexturedShape;
|
||||
|
Reference in New Issue
Block a user