Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Types | Public Member Functions | Protected Member Functions
itk::TestCostFunction< VDimension > Class Template Reference
+ Inheritance diagram for itk::TestCostFunction< VDimension >:
+ Collaboration diagram for itk::TestCostFunction< VDimension >:

Public Types

typedef TestCostFunction Self
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef PSMCostFunction< VDimension > Superclass
 
typedef Superclass::ParticleSystemType ParticleSystemType
 
typedef Superclass::VectorType VectorType
 
typedef ParticleSystemType::PointType PointType
 
- Public Types inherited from itk::PSMCostFunction< VDimension >
typedef PSMCostFunction Self
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef LightObject Superclass
 
typedef PSMParticleSystem< VDimension > ParticleSystemType
 
typedef vnl_vector_fixed< double, VDimension > VectorType
 

Public Member Functions

 itkTypeMacro (TestCostFunction, PSMCostFunction)
 
 itkNewMacro (Self)
 
 itkStaticConstMacro (Dimension, unsigned int, VDimension)
 
virtual VectorType Evaluate (unsigned int, unsigned int, const ParticleSystemType *, double &maxtimestep, double &energy) const
 
virtual VectorType Evaluate (unsigned int a, unsigned int b, const ParticleSystemType *c, double &d) const
 
virtual double Energy (unsigned int a, unsigned int b, const ParticleSystemType *c) const
 
virtual void BeforeIteration ()
 
virtual void AfterIteration ()
 
- Public Member Functions inherited from itk::PSMCostFunction< VDimension >
 itkTypeMacro (PSMCostFunction, LightObject)
 
 itkStaticConstMacro (Dimension, unsigned int, VDimension)
 
virtual void ResetBuffers ()
 
virtual void BeforeEvaluate (unsigned int, unsigned int, const ParticleSystemType *)
 
virtual void SetParticleSystem (ParticleSystemType *p)
 
virtual ParticleSystemTypeGetParticleSystem () const
 
virtual void SetDomainNumber (unsigned int i)
 
virtual int GetDomainNumber () const
 

Protected Member Functions

void operator= (const TestCostFunction &)
 
 TestCostFunction (const TestCostFunction &)
 
- Protected Member Functions inherited from itk::PSMCostFunction< VDimension >
void operator= (const PSMCostFunction &)
 
 PSMCostFunction (const PSMCostFunction &)
 

Additional Inherited Members

- Protected Attributes inherited from itk::PSMCostFunction< VDimension >
ParticleSystemTypem_ParticleSystem
 
unsigned int m_DomainNumber
 

Detailed Description

template<unsigned int VDimension>
class itk::TestCostFunction< VDimension >

Definition at line 25 of file itkPSMCostFunctionTest.cxx.

Member Typedef Documentation

template<unsigned int VDimension>
typedef Superclass::ParticleSystemType itk::TestCostFunction< VDimension >::ParticleSystemType

Type of particle system.

Definition at line 36 of file itkPSMCostFunctionTest.cxx.

template<unsigned int VDimension>
typedef TestCostFunction itk::TestCostFunction< VDimension >::Self

Standard class typedefs.

Definition at line 29 of file itkPSMCostFunctionTest.cxx.

template<unsigned int VDimension>
typedef Superclass::VectorType itk::TestCostFunction< VDimension >::VectorType

Vector & Point types.

Definition at line 39 of file itkPSMCostFunctionTest.cxx.

Member Function Documentation

template<unsigned int VDimension>
virtual void itk::TestCostFunction< VDimension >::AfterIteration ( )
inlinevirtual

Called after each iteration of the solver.

Reimplemented from itk::PSMCostFunction< VDimension >.

Definition at line 80 of file itkPSMCostFunctionTest.cxx.

80 {}
template<unsigned int VDimension>
virtual void itk::TestCostFunction< VDimension >::BeforeIteration ( )
inlinevirtual

Called before each iteration of a solver.

Reimplemented from itk::PSMCostFunction< VDimension >.

Definition at line 77 of file itkPSMCostFunctionTest.cxx.

77 {}
template<unsigned int VDimension>
virtual VectorType itk::TestCostFunction< VDimension >::Evaluate ( unsigned int  ,
unsigned int  ,
const ParticleSystemType ,
double &  maxtimestep,
double &  energy 
) const
inlinevirtual

The first argument is a pointer to the particle system. The second argument is the index of the domain within that particle system. The third argument is the index of the particle location within the given domain.

Implements itk::PSMCostFunction< VDimension >.

Definition at line 52 of file itkPSMCostFunctionTest.cxx.

55  {
56  maxtimestep = 1.0f;
57  energy = 1.0f;
58  VectorType a;
59  a.fill(1.0f);
60  return a;
61  }
Superclass::VectorType VectorType
template<unsigned int VDimension>
virtual VectorType itk::TestCostFunction< VDimension >::Evaluate ( unsigned int  int,
unsigned int  int,
const ParticleSystemType ,
double &  maxtimestep 
) const
inlinevirtual

Evaluate returns the vector-valued result of the function. The first argument is a pointer to the particle system. The second argument is the index of the domain within that particle system. The third argument is the index of the particle location within the given domain.

Implements itk::PSMCostFunction< VDimension >.

Definition at line 62 of file itkPSMCostFunctionTest.cxx.

64  {
65  double e;
66  return this->Evaluate(a,b,c,d,e);
67  }
virtual VectorType Evaluate(unsigned int, unsigned int, const ParticleSystemType *, double &maxtimestep, double &energy) const
template<unsigned int VDimension>
itk::TestCostFunction< VDimension >::itkNewMacro ( Self  )

Method for creation through the object factory.

template<unsigned int VDimension>
itk::TestCostFunction< VDimension >::itkStaticConstMacro ( Dimension  ,
unsigned  int,
VDimension   
)

Dimensionality of the domain of the particle system.


The documentation for this class was generated from the following file: