Exemple #1
0
/**
 * Adds rep assigned actors to the active renderer
 */
void FiberBundleRep::addRepActorsToViewRenderer(ViewPtr view)
{
	view->getRenderer()->AddActor(mActor);

	if (mViewportListener)
		mViewportListener->startListen(view->getRenderer());
}
Exemple #2
0
void VideoFixedPlaneRep::removeRepActorsFromViewRenderer(ViewPtr view)
{
	mRenderer = vtkRendererPtr();
	view->getRenderer()->RemoveActor(mRTGraphics->getActor());
	view->getRenderer()->RemoveActor(mInfoText->getActor());
	view->getRenderer()->RemoveActor(mStatusText->getActor());
	view->getRenderer()->RemoveActor(mOrientationVText->getActor());
	mProbeOrigin->setRenderer(NULL);
	mProbeSector->setRenderer(NULL);
	mProbeClipRect->setRenderer(NULL);

	mViewportListener->stopListen();
}
Exemple #3
0
/**
 * Removes rep assigned actors from the rendering pipeline
 */
void FiberBundleRep::removeRepActorsFromViewRenderer(ViewPtr view)
{
	view->getRenderer()->RemoveActor(mActor);

	if (mViewportListener)
		mViewportListener->stopListen();
}
void MetricNamesRep::addRepActorsToViewRenderer(ViewPtr view)
{
    for(unsigned i =0; i<mDisplayText.size(); ++i)
    {
        mDisplayText[i]->setRenderer(view->getRenderer());
    }
}
Exemple #5
0
void VideoFixedPlaneRep::addRepActorsToViewRenderer(ViewPtr view)
{
	mRenderer = view->getRenderer();
	mViewportListener->startListen(mRenderer);

	view->getRenderer()->AddActor(mRTGraphics->getActor());
	view->getRenderer()->AddActor(mInfoText->getActor());
	view->getRenderer()->AddActor(mStatusText->getActor());
	view->getRenderer()->AddActor(mOrientationVText->getActor());

	mProbeClipRect->setRenderer(view->getRenderer());
	mProbeOrigin->setRenderer(view->getRenderer());
	mProbeSector->setRenderer(view->getRenderer());
}
Exemple #6
0
void PlaneMetricRep::addRepActorsToViewRenderer(ViewPtr view)
{
    mViewportListener->startListen(view->getRenderer());
    DataMetricRep::addRepActorsToViewRenderer(view);
}
Exemple #7
0
void CameraControl::refreshView(ViewPtr view)
{
	this->setView(view);
	if(view)
		view->getRenderer()->ResetCameraClippingRange();
}
void PointMetricRep2D::addRepActorsToViewRenderer(ViewPtr view)
{
    if (mViewportListener)
        mViewportListener->startListen(view->getRenderer());
    DataMetricRep::addRepActorsToViewRenderer(view);
}
Exemple #9
0
void VolumetricRep::removeRepActorsFromViewRenderer(ViewPtr view)
{
	view->getRenderer()->RemoveVolume(mVolume);
}
Exemple #10
0
void VolumetricRep::addRepActorsToViewRenderer(ViewPtr view)
{
	view->getRenderer()->AddVolume(mVolume);
}
Exemple #11
0
void GeometricRep2D::removeRepActorsFromViewRenderer(ViewPtr view)
{
	view->getRenderer()->RemoveActor(mActor);
}
Exemple #12
0
void GeometricRep2D::addRepActorsToViewRenderer(ViewPtr view)
{
	view->getRenderer()->AddActor(mActor);
}
void OrientationAnnotationSmartRep::removeRepActorsFromViewRenderer(ViewPtr view)
{
	view->getRenderer()->RemoveActor(mOrientation);
}
void OrientationAnnotationSmartRep::addRepActorsToViewRenderer(ViewPtr view)
{
	this->transformChangedSlot();
	view->getRenderer()->AddActor(mOrientation);
}
void Slices3DRep::removeRepActorsFromViewRenderer(ViewPtr view)
{
	for (unsigned i=0; i<mProxy.size(); ++i)
		view->getRenderer()->RemoveActor(mProxy[i]->getActor());
}
void Slices3DRep::addRepActorsToViewRenderer(ViewPtr view)
{
	for (unsigned i=0; i<mProxy.size(); ++i)
		view->getRenderer()->AddActor(mProxy[i]->getActor());
}