Shapeworks Studio
2.1
Shape analysis software suite
|
#include <itkPSMNeighborhood.h>
Public Types | |
typedef PSMNeighborhood | Self |
typedef DataObject | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef WeakPointer< const Self > | ConstWeakPointer |
typedef Point< double, VDimension > | PointType |
typedef PSMDomain< VDimension > | DomainType |
typedef PSMContainer< PointType > | PointContainerType |
typedef std::vector< PSMPointIndexPair< VDimension > > | PointVectorType |
Public Member Functions | |
itkNewMacro (Self) | |
itkTypeMacro (PSMNeighborhood, DataObject) | |
itkStaticConstMacro (Dimension, unsigned int, VDimension) | |
itkSetObjectMacro (PointContainer, PointContainerType) | |
itkGetConstObjectMacro (PointContainer, PointContainerType) | |
virtual PointVectorType | FindNeighborhoodPoints (const PointType &, double) const |
virtual PointVectorType | FindNeighborhoodPointsWithWeights (const PointType &, std::vector< double > &, double) const |
itkSetObjectMacro (Domain, DomainType) | |
itkGetConstObjectMacro (Domain, DomainType) | |
virtual void | AddPosition (const PointType &, unsigned int, int) |
virtual void | SetPosition (const PointType &, unsigned int, int) |
virtual void | RemovePosition (unsigned int, int) |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const |
A PSMNeighborhood is responsible for computing neighborhoods of particles. Given a point position in a domain, and a neighborhood radius, the PSMNeighborhood returns a list of points that are neighbors of that point. The base class, PSMNeighborhood, must be subclassed to provide functionality; the base class will throw an exception when FindNeighborhoodPoints is called.
Definition at line 44 of file itkPSMNeighborhood.h.
typedef PSMDomain<VDimension> itk::PSMNeighborhood< VDimension >::DomainType |
Domain type. The Domain object provides bounds and distance information.
Definition at line 68 of file itkPSMNeighborhood.h.
typedef PSMContainer<PointType> itk::PSMNeighborhood< VDimension >::PointContainerType |
Container type for points. This matches the itkPSMParticleSystem container type.
Definition at line 72 of file itkPSMNeighborhood.h.
typedef Point<double, VDimension> itk::PSMNeighborhood< VDimension >::PointType |
Point type used to store particle locations.
Definition at line 64 of file itkPSMNeighborhood.h.
typedef std::vector<PSMPointIndexPair<VDimension> > itk::PSMNeighborhood< VDimension >::PointVectorType |
Point list (vector) type. This is the type of list returned by FindNeighborhoodPoints.
Definition at line 76 of file itkPSMNeighborhood.h.
typedef PSMNeighborhood itk::PSMNeighborhood< VDimension >::Self |
Standard class typedefs
Definition at line 48 of file itkPSMNeighborhood.h.
|
inlinevirtual |
For efficiency, itkNeighborhoods are not necessarily observers of itkPSMParticleSystem, but have specific methods invoked for various events. AddPosition is called by itkPSMParticleSystem when a particle location is added. SetPosition is called when a particle location is set. RemovePosition is called when a particle location is removed.
Reimplemented in itk::PSMRegionNeighborhood< VDimension >, and itk::PSMRegionNeighborhood< TImage::ImageDimension >.
Definition at line 116 of file itkPSMNeighborhood.h.
|
inlinevirtual |
Compile a list of points that are within a specified radius of a given point. The default implementation will throw an exception.
Reimplemented in itk::PSMRegionNeighborhood< VDimension >, and itk::PSMRegionNeighborhood< TImage::ImageDimension >.
Definition at line 86 of file itkPSMNeighborhood.h.
|
inlinevirtual |
This method finds neighborhood points as in the previous method, but also computes a vector of weights associated with each of those points.
Reimplemented in itk::PSMSurfaceNeighborhood< TImage >.
Definition at line 93 of file itkPSMNeighborhood.h.
itk::PSMNeighborhood< VDimension >::itkNewMacro | ( | Self | ) |
Method for creation through the object factory.
itk::PSMNeighborhood< VDimension >::itkSetObjectMacro | ( | PointContainer | , |
PointContainerType | |||
) |
Set/Get the point container. These are the points parsed by the Neighborhood class when FindNeighborhoodPoints is called.
itk::PSMNeighborhood< VDimension >::itkSetObjectMacro | ( | Domain | , |
DomainType | |||
) |
Set the Domain that this neighborhood will use. The Domain object is important because it defines bounds and distance measures.
itk::PSMNeighborhood< VDimension >::itkStaticConstMacro | ( | Dimension | , |
unsigned | int, | ||
VDimension | |||
) |
Dimensionality of the domain of the particle system.
itk::PSMNeighborhood< VDimension >::itkTypeMacro | ( | PSMNeighborhood< VDimension > | , |
DataObject | |||
) |
Run-time type information (and related methods).