示例#1
0
void ValidTimeHandler::handle(QXmlStreamReader & reader)
{
	gml::TimePrimitivePropertyTypeHandler::handle(reader);

	collector.setValidFrom(timeFrom());
	collector.setValidTo(timeTo());
}
示例#2
0
NOINLINE void UTIL_DrawBox(edict_t* ed, Vector& v1, Vector& v2, color24 color)
{
#ifndef NDEBUG
	static double lastDraw;
	if (lastDraw > gpGlobals->time)
		lastDraw = 0.0;
	if (timeFrom(lastDraw) < 0.48)
		return;
	lastDraw = gpGlobals->time;

	UTIL_DrawLine(ed, v1, v2, color);

	/*MESSAGE_BEGIN(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, NULL, ed);
		WRITE_BYTE(TE_BOX);
		WRITE_COORD(v1.x);
		WRITE_COORD(v1.y);
		WRITE_COORD(v1.z);
		WRITE_COORD(v2.x);
		WRITE_COORD(v2.y);
		WRITE_COORD(v2.z);
		WRITE_SHORT(5);			// life in 0.1's
		WRITE_BYTE(color.r);   	// r, g, b
		WRITE_BYTE(color.g);
		WRITE_BYTE(color.b);
	MESSAGE_END();*/

	UTIL_DrawLine(ed, v1, Vector(v1.x, v2.y, v1.z), color);
	UTIL_DrawLine(ed, v1, Vector(v2.x, v1.y, v1.z), color);
	UTIL_DrawLine(ed, Vector(v2.x, v2.y, v1.z), Vector(v2.x, v1.y, v1.z), color);
	UTIL_DrawLine(ed, Vector(v2.x, v2.y, v1.z), Vector(v1.x, v2.y, v1.z), color);

	UTIL_DrawLine(ed, v1, Vector(v1.x, v1.y, v2.z), color);
	UTIL_DrawLine(ed, v2, Vector(v2.x, v2.y, v1.z), color);
	UTIL_DrawLine(ed, Vector(v1.x, v2.y, v1.z), Vector(v1.x, v2.y, v2.z), color);
	UTIL_DrawLine(ed, Vector(v2.x, v1.y, v1.z), Vector(v2.x, v1.y, v2.z), color);

	UTIL_DrawLine(ed, v2, Vector(v1.x, v2.y, v2.z), color);
	UTIL_DrawLine(ed, v2, Vector(v2.x, v1.y, v2.z), color);
	UTIL_DrawLine(ed, Vector(v1.x, v1.y, v2.z), Vector(v2.x, v1.y, v2.z), color);
	UTIL_DrawLine(ed, Vector(v1.x, v1.y, v2.z), Vector(v1.x, v2.y, v2.z), color);
#endif
}