void CoreComponentRenderModel::showDebugView() {

	osg::ref_ptr<osg::PositionAttitudeTransform> pat = this->attachBox(
			CoreComponentModel::B_CORE_COMPONENT_ID,
			CoreComponentModel::WIDTH, CoreComponentModel::WIDTH,
			CoreComponentModel::WIDTH);

	// show the axis for the root node
	if (boost::dynamic_pointer_cast<CoreComponentModel>(this->getModel())->
			hasSensors() )
		attachAxis(pat);

}
void CoreComponentRenderModel::showDebugView() {
	std::vector<osg::Vec4> colors;
	if (boost::dynamic_pointer_cast<CoreComponentModel>(this->getModel())->
				hasSensors() ) {
		colors.push_back(osg::Vec4(1,0,0,0.7));
	} else {
		colors.push_back(osg::Vec4(1,1,1,0.7));
	}


	std::vector<osg::ref_ptr<osg::PositionAttitudeTransform> > pats = this->attachGeoms(colors);
	// show the axis for the root node
	if (boost::dynamic_pointer_cast<CoreComponentModel>(this->getModel())->
			hasSensors() ) {
		attachAxis(pats[0]);
	}

}