Carl098
(Carl)
February 27, 2021, 7:36am
1
I would like to ask where the Python source code of the Transform module is, and I want to learn it.
mau_igna_06
(Mauro I. Dominguez)
February 27, 2021, 12:42pm
2
I think this is the code of the transforms module:
/*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
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.
This file was originally developed by Jean-Christophe Fillion-Robin, Kitware Inc.
and was partially funded by NIH grant 3P41RR013218-12S1
==============================================================================*/
This file has been truncated. show original
Here you have two links that may be useful for you:
/*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile: vtkMRMLTransformNode.cxx,v $
Date: $Date: 2006/03/17 17:01:53 $
Version: $Revision: 1.14 $
=========================================================================auto=*/
#include "vtkMRMLTransformNode.h"
// MRML includes
#include "vtkMRMLBSplineTransformNode.h"
#include "vtkMRMLGridTransformNode.h"
#include "vtkMRMLLinearTransformNode.h"
This file has been truncated. show original
/*=========================================================================
Program: Visualization Toolkit
Module: vtkLinearTransform.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#include "vtkLinearTransform.h"
#include "vtkDataArray.h"
#include "vtkMath.h"
#include "vtkMatrix4x4.h"
#include "vtkPoints.h"
This file has been truncated. show original
1 Like
lassoan
(Andras Lasso)
February 27, 2021, 1:30pm
3
Just to clarify, Transforms module is implemented in C++ and Python-wrapped to make it available in Python. Most core modules and low-level features, processing, and GUI widgets are implemented in C++.
1 Like