Пример #1
0
///////////////////////////////////////////
// Class holding the variables per trial
///////////////////////////////////////////
// Constructor
IntroTrial::IntroTrial(IntroTrialEndNotifier notifier)
{
	// Setup default values when class is constructed
	TestTime = 60000;
	ZoneTime = 2000;

	// Results
	TrialTime = 0;

	_notifier = notifier;
	_stage = -1;
	_lastZoneTicks.QuadPart = 0;
	_inZone = false;

	_numVerts = 0;
	_numVertsBox = 0;

	_verts = NULL;
	_vertsBox = NULL;

	_participantNumber = 0;

	BuildBoundingBox(); //line 495
	BuildSurface();
}
Пример #2
0
void mitk::ExtrudedContour::UpdateOutputInformation()
{
  if ( this->GetSource() )
  {
    this->GetSource()->UpdateOutputInformation();
  }
  if(GetMTime() > m_LastCalculateExtrusionTime)
  {
    BuildGeometry();
    BuildSurface();
  }
  //if ( ( m_CalculateBoundingBox ) && ( m_PolyDataSeries.size() > 0 ) )
  //  CalculateBoundingBox();
}
Пример #3
0
/*
  ==============================
  BuildSurfaceLightList

  ==============================
*/
bsurface_t * BuildSurfaceLightList( hmanager_t *shapehm )
{
	bsurface_t	*list, *bs;

	hobj_t		*shape;
	hobj_t		*csurf;
	hpair_t		*pair;
	hobj_search_iterator_t	iter;

	list = NULL;

	InitClassSearchIterator( &iter, HManagerGetRootClass( shapehm ), "shape" );
	for ( ; ( shape = SearchGetNextClass( &iter ) ) ; )
	{
		pair = FindHPair( shape, "tess_name" );
		if ( !pair )
			Error( "missing key 'tess_name'\n" );
	
		if ( !strcmp( pair->value, "csurf" ) )
		{

		}
		else
		{
			continue;
		}

		// no material, no light
		if ( !FindHPair( shape, "material" ) )
			continue;	

		csurf = FindClassType( shape, "csurf" );
		if ( !csurf ) 
			Error( "missing class 'csurf' in shape '%s'\n", shape->name );

		bs = BuildSurface( csurf );

		bs->shape = shape;
		bs->self = csurf;

		bs->next = list;
		list = bs;
	}

	return list;
}