-
-
-TopLoc_ItemLocation::TopLoc_ItemLocation(const TopLoc_ItemLocation& anOther): myTrsf(NULL)
-{
- if (anOther.myTrsf != NULL) {
- myTrsf = new gp_Trsf;
- *myTrsf = *(anOther.myTrsf);
- }
- myDatum = anOther.myDatum;
- myPower = anOther.myPower;
-}
-
-TopLoc_ItemLocation& TopLoc_ItemLocation::Assign(const TopLoc_ItemLocation& anOther)
-{
- if (anOther.myTrsf == NULL) {
- if (myTrsf != NULL) delete myTrsf;
- myTrsf = NULL;
- }
- else if (myTrsf != anOther.myTrsf) {
- if (myTrsf == NULL) myTrsf = new gp_Trsf;
- *myTrsf = *(anOther.myTrsf);
- }
- myDatum = anOther.myDatum;
- myPower = anOther.myPower;
-
- return *this;
-}
-
-void TopLoc_ItemLocation::Destroy()
-{
- if (myTrsf != NULL) delete myTrsf;
- myTrsf = NULL;
-}
-