BelowPlane* _BelowPlane_New(  BELOWPLANE_DEFARGS  )
{
	BelowPlane* self;
	
	/* Allocate memory */
	assert( _sizeOfSelf >= sizeof(BelowPlane) );
	self = (BelowPlane*)_Stg_Shape_New(  STG_SHAPE_PASSARGS  );
	
	/* General info */
	return self;
}
/*----------------------------------------------------------------------------------------------------------------------------------
** Constructors
*/
BelowHeightField* _BelowHeightField_New(  BELOWHEIGHTFIELD_DEFARGS  )
{
   BelowHeightField* self;
   
   /* Allocate memory */
   assert( _sizeOfSelf >= sizeof(BelowHeightField) );
   self = (BelowHeightField*)_Stg_Shape_New(  STG_SHAPE_PASSARGS  );
   
   /* General info */
   return self;
}
ConvexHull* _ConvexHull_New(  CONVEXHULL_DEFARGS  )
{
	ConvexHull* self;
	
	/* Allocate memory */
	assert( _sizeOfSelf >= sizeof(ConvexHull) );
	self = (ConvexHull*)_Stg_Shape_New(  STG_SHAPE_PASSARGS  );
	
	/* General info */

	return self;
}
Exemplo n.º 4
0
Sphere* _Sphere_New(  SPHERE_DEFARGS  )
{
	Sphere* self;
	
	/* Allocate memory */
	assert( _sizeOfSelf >= sizeof(Sphere) );
	self = (Sphere*)_Stg_Shape_New(  STG_SHAPE_PASSARGS  );
	
	/* General info */

	/* Virtual Info */
	self->_isCoordInside = _isCoordInside;
	self->_calculateVolume = _calculateVolume;
	self->_distanceFromCenterAxis = _distanceFromCenterAxis;
	
	return self;
}
Exemplo n.º 5
0
BelowCosinePlane* _BelowCosinePlane_New(
		SizeT                                 _sizeOfSelf, 
		Type                                  type,
		Stg_Class_DeleteFunction*             _delete,
		Stg_Class_PrintFunction*              _print,
		Stg_Class_CopyFunction*               _copy, 
		Stg_Component_DefaultConstructorFunction* _defaultConstructor,
		Stg_Component_ConstructFunction*      _construct,
		Stg_Component_BuildFunction*          _build,
		Stg_Component_InitialiseFunction*     _initialise,
		Stg_Component_ExecuteFunction*        _execute,
		Stg_Component_DestroyFunction*        _destroy,		
		Stg_Shape_IsCoordInsideFunction*      _isCoordInside,
		Stg_Shape_CalculateVolumeFunction*    _calculateVolume,
		Name                                  name )
{
	BelowCosinePlane* self;
	
	/* Allocate memory */
	assert( _sizeOfSelf >= sizeof(BelowCosinePlane) );
	self = (BelowCosinePlane*)_Stg_Shape_New( 
			_sizeOfSelf,
			type,
			_delete,
			_print,
			_copy,
			_defaultConstructor,
			_construct,
			_build,
			_initialise,
			_execute,
			_destroy,		
			_isCoordInside,
			_calculateVolume,
			name );
	
	/* General info */

	/* Virtual Info */
	self->_isCoordInside = _isCoordInside;
	
	return self;
}