Salome HOME
CoTech decision: move MEDWrapper from MED to SMESH
[samples/sierpinsky.git] / src / Sierpinsky / SIERPINSKY_Gen_i.cxx
index 81b0277314b9ca4756f6f7c53dab8bf5fc0acda5..41ea3cd3b26b0ddc66980224b33c0efc1fa369e8 100644 (file)
@@ -37,10 +37,10 @@ using namespace MED;
 extern "C"
 {
   PortableServer::ObjectId * SIERPINSKYEngine_factory( CORBA::ORB_ptr            orb,
-                                                      PortableServer::POA_ptr   poa, 
-                                                      PortableServer::ObjectId* contId,
-                                                      const char*               instanceName,
-                                                      const char*               interfaceName )
+                                                       PortableServer::POA_ptr   poa, 
+                                                       PortableServer::ObjectId* contId,
+                                                       const char*               instanceName,
+                                                       const char*               interfaceName )
 {
   SIERPINSKY_Gen_i* anEngine = new SIERPINSKY_Gen_i( orb, poa, contId, instanceName, interfaceName );
   return anEngine->getId() ;
@@ -58,10 +58,10 @@ SIERPINSKY_Gen_i::SIERPINSKY_Gen_i()
  * Constructor
  */
 SIERPINSKY_Gen_i::SIERPINSKY_Gen_i( CORBA::ORB_ptr            orb,
-                                   PortableServer::POA_ptr   poa,
-                                   PortableServer::ObjectId* contId, 
-                                   const char*               instanceName, 
-                                   const char*               interfaceName ) 
+                                    PortableServer::POA_ptr   poa,
+                                    PortableServer::ObjectId* contId, 
+                                    const char*               instanceName, 
+                                    const char*               interfaceName ) 
 : Engines_Component_i( orb, poa, contId, instanceName, interfaceName ) 
 {
   // activate servant
@@ -83,8 +83,8 @@ SIERPINSKY_Gen_i::~SIERPINSKY_Gen_i()
  * Initializes engine with three reference points
  */
 void SIERPINSKY_Gen_i::Init( CORBA::Double theX1, CORBA::Double theY1, 
-                            CORBA::Double theX2, CORBA::Double theY2, 
-                            CORBA::Double theX3, CORBA::Double theY3 )
+                             CORBA::Double theX2, CORBA::Double theY2, 
+                             CORBA::Double theX3, CORBA::Double theY3 )
 {
   myRefPoints[0] = MyPoint( theX1, theY1 );
   myRefPoints[1] = MyPoint( theX2, theY2 );
@@ -107,8 +107,8 @@ void SIERPINSKY_Gen_i::Reset()
  * Generates next iteration point
  */
 void SIERPINSKY_Gen_i::NextPoint( CORBA::Double  theX,     CORBA::Double  theY, 
-                                 CORBA::Long    theIter, 
-                                 CORBA::Double& theNextX, CORBA::Double& theNextY )
+                                  CORBA::Long    theIter, 
+                                  CORBA::Double& theNextX, CORBA::Double& theNextY )
 {
   double x = theIter < 1 || theIter > 3 ? theX : ( theX + myRefPoints[ theIter-1 ].myX ) / 2;
   double y = theIter < 1 || theIter > 3 ? theY : ( theY + myRefPoints[ theIter-1 ].myY ) / 2;