Example #1
0
void DonutObject::Init()
{
	ReadyInterpParameterBlock();		// Build the interpolations parameter block in SimpleSpline
	ReplaceReference(USERPBLOCK, CreateParameterBlock(descVer0, PBLOCK_LENGTH, CURRENT_VERSION));
	assert(pblock);
	
	pblock->SetValue(PB_RADIUS1,0,crtRadius1);
	pblock->SetValue(PB_RADIUS2,0,crtRadius2);
 	}
Example #2
0
EllipseObject::EllipseObject() : SimpleSpline() 
	{
	ReadyInterpParameterBlock();		// Build the interpolations parameter block in SimpleSpline
	MakeRefByID(FOREVER, USERPBLOCK, CreateParameterBlock(descVer0, PBLOCK_LENGTH, CURRENT_VERSION));
	assert(pblock);
	
	pblock->SetValue(PB_LENGTH,0,crtLength);
	pblock->SetValue(PB_WIDTH,0,crtWidth);	
 	}
Example #3
0
RectangleObject::RectangleObject() : SimpleSpline() 
	{
	ReadyInterpParameterBlock();		// Build the interpolations parameter block in SimpleSpline
	ReplaceReference(USERPBLOCK, CreateParameterBlock(descVer1, PBLOCK_LENGTH, CURRENT_VERSION));
	assert(pblock);
	
	pblock->SetValue(PB_LENGTH,0,crtLength);
	pblock->SetValue(PB_WIDTH,0,crtWidth);	
	pblock->SetValue(PB_FILLET,0,crtFillet);	
 	}
Example #4
0
EllipseObject::EllipseObject() : SimpleSpline() 
{
	myParentNumRefs = SimpleSpline::NumRefs();

	// The ellipse does not have any more reference than its parent, 
	// since the only parameter hosted by ellipse is overriding the parents
	myNumRefs = 0;					
	pblock = NULL;
	myParamBlock = NULL;

	// Build the interpolations parameter block in SimpleSpline
	ReadyInterpParameterBlock();
	ellipseObjDesc.MakeAutoParamBlocks(this);

	DbgAssert(myParamBlock && _M("Fail to Create Parameter Block"));

	// Set class value
	myParamBlock->SetValue(PB_OUTLINE, 0, msBuild_outline);
}
EmptySplineObject::EmptySplineObject() : SimpleSpline()
{
  ReadyInterpParameterBlock();  // Build the interpolations parameter block in
                                // SimpleSpline
}