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

Public Types

typedef TestTwoCostFunction 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 (TestTwoCostFunction, 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 ()
 
void SetValue (double v)
 
double GetValue () const
 
- 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 TestTwoCostFunction &)
 
 TestTwoCostFunction (const TestTwoCostFunction &)
 
- Protected Member Functions inherited from itk::PSMCostFunction< VDimension >
void operator= (const PSMCostFunction &)
 
 PSMCostFunction (const PSMCostFunction &)
 

Protected Attributes

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

Detailed Description

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

Definition at line 25 of file itkPSMTwoCostFunctionTest.cxx.

Member Typedef Documentation

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

Type of particle system.

Definition at line 36 of file itkPSMTwoCostFunctionTest.cxx.

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

Standard class typedefs.

Definition at line 29 of file itkPSMTwoCostFunctionTest.cxx.

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

Vector & Point types.

Definition at line 39 of file itkPSMTwoCostFunctionTest.cxx.

Member Function Documentation

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

Called after each iteration of the solver.

Reimplemented from itk::PSMCostFunction< VDimension >.

Definition at line 80 of file itkPSMTwoCostFunctionTest.cxx.

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

Called before each iteration of a solver.

Reimplemented from itk::PSMCostFunction< VDimension >.

Definition at line 77 of file itkPSMTwoCostFunctionTest.cxx.

77 {}
template<unsigned int VDimension>
virtual VectorType itk::TestTwoCostFunction< 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 itkPSMTwoCostFunctionTest.cxx.

55  {
56  maxtimestep = m_Value;
57  energy = m_Value;
58  VectorType a;
59  a.fill(m_Value);
60  return a;
61  }
template<unsigned int VDimension>
virtual VectorType itk::TestTwoCostFunction< 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 itkPSMTwoCostFunctionTest.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::TestTwoCostFunction< VDimension >::itkNewMacro ( Self  )

Method for creation through the object factory.

template<unsigned int VDimension>
itk::TestTwoCostFunction< 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: