From ecba4fe7e0bda85cba6ea57a034df605e36e1721 Mon Sep 17 00:00:00 2001 From: Christophe Alexandre Date: Tue, 25 Mar 2008 11:18:17 +0000 Subject: [PATCH] cleaning again --- chamsin/src/device/Device.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chamsin/src/device/Device.cpp b/chamsin/src/device/Device.cpp index e90aa914..6b23cd5f 100644 --- a/chamsin/src/device/Device.cpp +++ b/chamsin/src/device/Device.cpp @@ -114,7 +114,7 @@ void Device::_Place(Instance* ins, const Transformation::Orientation& orientatio throw Error("Can't Place Instance : ins is NULL"); } - if(ins->IsPlaced()) { + if(ins->isPlaced()) { throw Error("Can't Place " + getString(ins) + " : it has already been placed"); } @@ -126,8 +126,8 @@ void Device::_Place(Instance* ins, const Transformation::Orientation& orientatio Transformation transformation_ins = Transformation(translation, orientation); - ins->SetTransformation(transformation_ins); - ins->SetPlacementStatus(Instance::PlacementStatus::PLACED); + ins->setTransformation(transformation_ins); + ins->setPlacementStatus(Instance::PlacementStatus::PLACED); } @@ -138,7 +138,7 @@ void Device::_setRefIns(Instance* ins) const throw Error("Can't SetRefIns : ref instance is NULL"); } - if(ins->IsUnplaced()) { + if(ins->isUnplaced()) { throw Error("Can't SetRefIns : ref instance has't been placed"); } @@ -153,7 +153,7 @@ void Device::_PlaceRight(Instance* ins, const Transformation::Orientation& orien throw Error("Can't PlaceRight Instance : ins is NULL"); } - if(ins->IsPlaced()) { + if(ins->isPlaced()) { throw Error("Can't PlaceRight " + getString(ins) + " : it has already been placed"); } @@ -172,8 +172,8 @@ void Device::_PlaceRight(Instance* ins, const Transformation::Orientation& orien Transformation transformation_ins = Transformation(translation, orientation); - ins->SetTransformation(transformation_ins); - ins->SetPlacementStatus(Instance::PlacementStatus::PLACED); + ins->setTransformation(transformation_ins); + ins->setPlacementStatus(Instance::PlacementStatus::PLACED); refins = ins; }