osg::Group *
StarRegionScalarInteractor::makeDial()
{

   //fprintf(stderr,"StarRegionScalarInteractor::makeDial\n");
   osg::Group *group;
   osg::Geode *panel, *minLine, *maxLine, *midLine;

   //pfText *name;

   group = new osg::Group();

   panel = makePanel();
   group->addChild (panel);

   minLine = makeLine (minAngle);
   group->addChild (minLine);

   maxLine = makeLine (maxAngle);
   group->addChild (maxLine);

   midLine = makeLine ( (maxAngle+minAngle) *0.5);
   group->addChild (midLine);

//    minLabel = makeLabel(minAngle, minValue);
//    group->addChild(minLabel);
//
//    maxLabel = makeLabel(maxAngle, maxValue);
//    group->addChild(maxLabel);

   //name = makeTitle(paramName);
   //group->addChild(name);

   //sensableGeoset = panel->getGSet(0);

   return (group);

}
Exemple #2
0
void AnalogView::InitObject(BRect rt, int cpu)
{
	rt.OffsetTo(B_ORIGIN);
	param.cpu = cpu;

	system_info		sysInfo;
	
	get_system_info(&sysInfo);
	oldActiveTime = sysInfo.cpu_infos[cpu].active_time; 
	oldSystemTime = system_time();
	nowCPUTime = 0;
	oldCPUTime = -1;

	param.panelLength = rt.Width() / 2 - 3 * 7;
	param.needle = (rt.Width() / 2 - 3 * 7) * 0.93;
	param.meterCenter.Set(rt.Width() / 2, param.panelLength + 3 * 8);
	makeTable();
	
	makePanel(rt);

	SetViewColor(216, 216, 216);
	SetLowColor(216, 216, 216);
	SetHighColor(0, 0, 0);
}
Exemple #3
0
Credits::Credits(TTF_Font *f18, TTF_Font *f48) : font18(f18), font48(f48){

	makePanel();

}