Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (62 sloc) 2.68 KB
/*==============================================================================
Program: 3D Slicer
Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
// LoadableExtensionTemplate Logic includes
#include "vtkSlicerLoadableExtensionTemplateLogic.h"
// MRML includes
// VTK includes
#include <vtkNew.h>
// STD includes
#include <cassert>
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkSlicerLoadableExtensionTemplateLogic);
//----------------------------------------------------------------------------
vtkSlicerLoadableExtensionTemplateLogic::vtkSlicerLoadableExtensionTemplateLogic()
{
}
//----------------------------------------------------------------------------
vtkSlicerLoadableExtensionTemplateLogic::~vtkSlicerLoadableExtensionTemplateLogic()
{
}
//----------------------------------------------------------------------------
void vtkSlicerLoadableExtensionTemplateLogic::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os, indent);
}
//---------------------------------------------------------------------------
void vtkSlicerLoadableExtensionTemplateLogic::SetMRMLSceneInternal(vtkMRMLScene * newScene)
{
vtkNew<vtkIntArray> events;
events->InsertNextValue(vtkMRMLScene::NodeAddedEvent);
events->InsertNextValue(vtkMRMLScene::NodeRemovedEvent);
events->InsertNextValue(vtkMRMLScene::EndBatchProcessEvent);
this->SetAndObserveMRMLSceneEventsInternal(newScene, events.GetPointer());
}
//-----------------------------------------------------------------------------
void vtkSlicerLoadableExtensionTemplateLogic::RegisterNodes()
{
assert(this->GetMRMLScene() != 0);
}
//---------------------------------------------------------------------------
void vtkSlicerLoadableExtensionTemplateLogic::UpdateFromMRMLScene()
{
assert(this->GetMRMLScene() != 0);
}
//---------------------------------------------------------------------------
void vtkSlicerLoadableExtensionTemplateLogic
::OnMRMLSceneNodeAdded(vtkMRMLNode* vtkNotUsed(node))
{
}
//---------------------------------------------------------------------------
void vtkSlicerLoadableExtensionTemplateLogic
::OnMRMLSceneNodeRemoved(vtkMRMLNode* vtkNotUsed(node))
{
}
Jump to Line
Something went wrong with that request. Please try again.