/usr/include/IGSTK/igstkMeshResliceObjectRepresentation.h is in libigstk4-dev 4.4.0-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | /*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: $RCSfile: igstkMeshResliceObjectRepresentation.h,v $
Language: C++
Date: $Date: 2009-06-15 20:35:50 $
Version: $Revision: 1.2 $
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCopyright.txt or http://www.igstk.org/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 notices for more information.
=========================================================================*/
#ifndef __igstkMeshResliceObjectRepresentation_h
#define __igstkMeshResliceObjectRepresentation_h
#include "igstkMacros.h"
#include "igstkTransform.h"
#include "igstkMeshObject.h"
#include "igstkStateMachine.h"
#include "igstkObjectRepresentation.h"
#include "igstkReslicerPlaneSpatialObject.h"
class vtkPlane;
class vtkCutter;
class vtkProperty;
namespace igstk
{
/** \class MeshResliceObjectRepresentation
*
* \brief This class represents a Mesh object.
*
*
* \ingroup ObjectRepresentation
*/
class MeshResliceObjectRepresentation
: public ObjectRepresentation
{
public:
/** Macro with standard traits declarations. */
igstkStandardClassTraitsMacro( MeshResliceObjectRepresentation,
ObjectRepresentation )
public:
/** Typedefs */
typedef MeshObject MeshObjectType;
typedef MeshObjectType::PointType PointType;
typedef ReslicerPlaneSpatialObject ReslicerPlaneType;
typedef ReslicerPlaneType::Pointer ReslicerPlanePointerType;
typedef ReslicerPlaneType::VectorType VectorType;
/** Return a copy of the current object representation */
Pointer Copy() const;
/** Connect this representation class to the spatial object */
void RequestSetMeshObject( const MeshObjectType * MeshObject );
/** Sets visibility */
void SetVisibility(bool visibility);
/** Sets the reslicer plane */
void RequestSetReslicePlaneSpatialObject( const ReslicerPlaneType *
planeSpatialObject);
/** Set/Get line width */
void SetLineWidth(double LineWidth);
igstkGetMacro( LineWidth, double );
// void RequestSetResliceAxes( vtkMatrix4x4 *matrix );
protected:
/** Print object information */
virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;
/** Constructor */
MeshResliceObjectRepresentation( void );
/** Destructor */
~MeshResliceObjectRepresentation( void );
/** Create the VTK actors */
void CreateActors();
/** Verify time stamp. Use the reslicing tool transform to verify
* the time stamp */
virtual bool VerifyTimeStamp() const;
private:
/** Declare the observers that will receive the reslicing plane parameters
* from the ReslicerPlaneSpatialObject */
igstkObserverMacro( ReslicerPlaneCenter,
ReslicerPlaneType::ReslicerPlaneCenterEvent,
ReslicerPlaneType::VectorType);
ReslicerPlaneCenterObserver::Pointer m_ReslicerPlaneCenterObserver;
igstkObserverMacro( ReslicerPlaneNormal,
ReslicerPlaneType::ReslicerPlaneNormalEvent,
ReslicerPlaneType::VectorType);
ReslicerPlaneNormalObserver::Pointer m_ReslicerPlaneNormalObserver;
/** update the visual representation with changes in the geometry */
virtual void UpdateRepresentationProcessing();
/** Connect this representation class to the spatial object. Only to be
* called by the State Machine. */
void SetMeshObjectProcessing();
/** Null operation for a State Machine transition */
void NoProcessing();
/** Set reslice plane spatial object processing */
void SetReslicePlaneSpatialObjectProcessing();
private:
/** Inputs to the State Machine */
igstkDeclareInputMacro( ValidMeshObject );
igstkDeclareInputMacro( NullMeshObject );
igstkDeclareInputMacro( ValidReslicePlaneSpatialObject );
igstkDeclareInputMacro( InValidReslicePlaneSpatialObject );
igstkDeclareInputMacro( EmptyImageSpatialObject );
// igstkDeclareInputMacro( Reslice );
/** States for the State Machine */
igstkDeclareStateMacro( NullMeshObject );
igstkDeclareStateMacro( ValidMeshObject );
igstkDeclareStateMacro( ValidReslicePlaneSpatialObject );
/** Variables for managing the mesh spatial object */
MeshObjectType::ConstPointer m_MeshObject;
MeshObjectType::ConstPointer m_MeshObjectToBeSet;
/** Variables for managing reslice plane spatial object */
ReslicerPlanePointerType m_ReslicePlaneSpatialObjectToBeSet;
ReslicerPlanePointerType m_ReslicePlaneSpatialObject;
/** Plane defining the contour */
vtkPlane* m_Plane;
vtkCutter* m_Cutter;
vtkProperty* m_ContourProperty;
//vtkTubeFilter* m_Tuber;
double m_LineWidth;
};
} // end namespace igstk
#endif // __igstkMeshResliceObjectRepresentation_h
|