Skip to content

Commit 115907f

Browse files
committed
STYLE: Rename module from VR to VirtualReality
1 parent 6308d6a commit 115907f

29 files changed

+401
-405
lines changed

CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
cmake_minimum_required(VERSION 3.5)
22

3-
project(SlicerOpenVR)
3+
project(SlicerVirtualReality)
44

55
#-----------------------------------------------------------------------------
66
# Extension meta-information
7-
set(EXTENSION_HOMEPAGE "http://slicer.org/slicerWiki/index.php/Documentation/Nightly/Extensions/VR")
8-
set(EXTENSION_CATEGORY "Examples")
7+
set(EXTENSION_HOMEPAGE "http://slicer.org/slicerWiki/index.php/Documentation/Nightly/Extensions/VirtualReality")
8+
set(EXTENSION_CATEGORY "Virtual Reality")
99
set(EXTENSION_CONTRIBUTORS "Jean-Baptiste Vimort (Kitware), Jean-Christophe Fillion-Robin (Kitware)")
1010
set(EXTENSION_DESCRIPTION "This extension allow to use a an HTC vive to display data in Virtual Reallity")
11-
set(EXTENSION_ICONURL "https://raw.githubusercontent.com/KitwareMedical/SlicerOpenVR/master/VR.png")
11+
set(EXTENSION_ICONURL "https://raw.githubusercontent.com/KitwareMedical/SlicerVirtualReality/master/VirtualReality.png")
1212
set(EXTENSION_SCREENSHOTURLS "http://www.example.com/Slicer/Extensions/VR/Screenshots/1.png")
1313
set(EXTENSION_DEPENDS "NA") # Specified as a space separated string, a list or 'NA' if any
1414
set(EXTENSION_BUILD_SUBDIRECTORY inner-build)
@@ -35,7 +35,7 @@ endif()
3535

3636
#-----------------------------------------------------------------------------
3737
# Extension modules
38-
add_subdirectory(VR)
38+
add_subdirectory(VirtualReality)
3939
## NEXT_MODULE
4040

4141
#-----------------------------------------------------------------------------

VR.png SlicerVirtualReality.png

File renamed without changes.

VR/qSlicerVRModuleWidget.cxx

-135
This file was deleted.

VR/CMakeLists.txt VirtualReality/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#-----------------------------------------------------------------------------
3-
set(MODULE_NAME VR)
3+
set(MODULE_NAME VirtualReality)
44
set(MODULE_TITLE "Virtual Reality")
55

66
string(TOUPPER ${MODULE_NAME} MODULE_NAME_UPPER)
File renamed without changes.

VR/Logic/vtkSlicerVRLogic.cxx VirtualReality/Logic/vtkSlicerVirtualRealityLogic.cxx

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
1616
==============================================================================*/
1717

18-
// VR Logic includes
19-
#include "vtkSlicerVRLogic.h"
18+
// VirtualReality Logic includes
19+
#include "vtkSlicerVirtualRealityLogic.h"
2020

2121
// MRML includes
2222
#include <vtkMRMLScene.h>
@@ -30,26 +30,26 @@
3030
#include <cassert>
3131

3232
//----------------------------------------------------------------------------
33-
vtkStandardNewMacro(vtkSlicerVRLogic);
33+
vtkStandardNewMacro(vtkSlicerVirtualRealityLogic);
3434

3535
//----------------------------------------------------------------------------
36-
vtkSlicerVRLogic::vtkSlicerVRLogic()
36+
vtkSlicerVirtualRealityLogic::vtkSlicerVirtualRealityLogic()
3737
{
3838
}
3939

4040
//----------------------------------------------------------------------------
41-
vtkSlicerVRLogic::~vtkSlicerVRLogic()
41+
vtkSlicerVirtualRealityLogic::~vtkSlicerVirtualRealityLogic()
4242
{
4343
}
4444

4545
//----------------------------------------------------------------------------
46-
void vtkSlicerVRLogic::PrintSelf(ostream& os, vtkIndent indent)
46+
void vtkSlicerVirtualRealityLogic::PrintSelf(ostream& os, vtkIndent indent)
4747
{
4848
this->Superclass::PrintSelf(os, indent);
4949
}
5050

5151
//---------------------------------------------------------------------------
52-
void vtkSlicerVRLogic::SetMRMLSceneInternal(vtkMRMLScene * newScene)
52+
void vtkSlicerVirtualRealityLogic::SetMRMLSceneInternal(vtkMRMLScene * newScene)
5353
{
5454
vtkNew<vtkIntArray> events;
5555
events->InsertNextValue(vtkMRMLScene::NodeAddedEvent);
@@ -59,25 +59,25 @@ void vtkSlicerVRLogic::SetMRMLSceneInternal(vtkMRMLScene * newScene)
5959
}
6060

6161
//-----------------------------------------------------------------------------
62-
void vtkSlicerVRLogic::RegisterNodes()
62+
void vtkSlicerVirtualRealityLogic::RegisterNodes()
6363
{
6464
assert(this->GetMRMLScene() != 0);
6565
}
6666

6767
//---------------------------------------------------------------------------
68-
void vtkSlicerVRLogic::UpdateFromMRMLScene()
68+
void vtkSlicerVirtualRealityLogic::UpdateFromMRMLScene()
6969
{
7070
assert(this->GetMRMLScene() != 0);
7171
}
7272

7373
//---------------------------------------------------------------------------
74-
void vtkSlicerVRLogic
74+
void vtkSlicerVirtualRealityLogic
7575
::OnMRMLSceneNodeAdded(vtkMRMLNode* vtkNotUsed(node))
7676
{
7777
}
7878

7979
//---------------------------------------------------------------------------
80-
void vtkSlicerVRLogic
80+
void vtkSlicerVirtualRealityLogic
8181
::OnMRMLSceneNodeRemoved(vtkMRMLNode* vtkNotUsed(node))
8282
{
8383
}

VR/Logic/vtkSlicerVRLogic.h VirtualReality/Logic/vtkSlicerVirtualRealityLogic.h

+11-13
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
1616
==============================================================================*/
1717

18-
// .NAME vtkSlicerVRLogic - slicer logic class for volumes manipulation
18+
// .NAME vtkSlicerVirtualRealityLogic - slicer logic class for volumes manipulation
1919
// .SECTION Description
2020
// This class manages the logic associated with reading, saving,
2121
// and changing propertied of the volumes
2222

2323

24-
#ifndef __vtkSlicerVRLogic_h
25-
#define __vtkSlicerVRLogic_h
24+
#ifndef __vtkSlicerVirtualRealityLogic_h
25+
#define __vtkSlicerVirtualRealityLogic_h
2626

2727
// Slicer includes
2828
#include "vtkSlicerModuleLogic.h"
@@ -32,22 +32,20 @@
3232
// STD includes
3333
#include <cstdlib>
3434

35-
#include "vtkSlicerVRModuleLogicExport.h"
35+
#include "vtkSlicerVirtualRealityModuleLogicExport.h"
3636

37-
38-
/// \ingroup Slicer_QtModules_ExtensionTemplate
39-
class VTK_SLICER_VR_MODULE_LOGIC_EXPORT vtkSlicerVRLogic :
37+
class VTK_SLICER_VIRTUALREALITY_MODULE_LOGIC_EXPORT vtkSlicerVirtualRealityLogic :
4038
public vtkSlicerModuleLogic
4139
{
4240
public:
4341

44-
static vtkSlicerVRLogic *New();
45-
vtkTypeMacro(vtkSlicerVRLogic, vtkSlicerModuleLogic);
42+
static vtkSlicerVirtualRealityLogic *New();
43+
vtkTypeMacro(vtkSlicerVirtualRealityLogic, vtkSlicerModuleLogic);
4644
void PrintSelf(ostream& os, vtkIndent indent);
4745

4846
protected:
49-
vtkSlicerVRLogic();
50-
virtual ~vtkSlicerVRLogic();
47+
vtkSlicerVirtualRealityLogic();
48+
virtual ~vtkSlicerVirtualRealityLogic();
5149

5250
virtual void SetMRMLSceneInternal(vtkMRMLScene* newScene);
5351
/// Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class.
@@ -57,8 +55,8 @@ class VTK_SLICER_VR_MODULE_LOGIC_EXPORT vtkSlicerVRLogic :
5755
virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode* node);
5856
private:
5957

60-
vtkSlicerVRLogic(const vtkSlicerVRLogic&); // Not implemented
61-
void operator=(const vtkSlicerVRLogic&); // Not implemented
58+
vtkSlicerVirtualRealityLogic(const vtkSlicerVirtualRealityLogic&); // Not implemented
59+
void operator=(const vtkSlicerVirtualRealityLogic&); // Not implemented
6260
};
6361

6462
#endif
File renamed without changes.

0 commit comments

Comments
 (0)