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() ;
* 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
* 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 );
* 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;