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
|
/*=========================================================================
Program: VMTK
Module: $RCSfile: vtkvmtkLinearSystem.h,v $
Language: C++
Date: $Date: 2006/04/06 16:46:43 $
Version: $Revision: 1.3 $
Copyright (c) Luca Antiga, David Steinman. All rights reserved.
See LICENCE file for details.
Portions of this code are covered under the VTK copyright.
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.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.
=========================================================================*/
// .NAME vtkvmtkLinearSystem - ..
// .SECTION Description
// ..
#ifndef __vtkvmtkLinearSystem_h
#define __vtkvmtkLinearSystem_h
#include "vtkObject.h"
#include "vtkvmtkSparseMatrix.h"
#include "vtkvmtkDoubleVector.h"
//#include "vtkvmtkDifferentialGeometryWin32Header.h"
#include "vtkvmtkWin32Header.h"
class VTK_VMTK_DIFFERENTIAL_GEOMETRY_EXPORT vtkvmtkLinearSystem : public vtkObject
{
public:
static vtkvmtkLinearSystem* New();
vtkTypeRevisionMacro(vtkvmtkLinearSystem,vtkObject);
vtkSetObjectMacro(A,vtkvmtkSparseMatrix);
vtkGetObjectMacro(A,vtkvmtkSparseMatrix);
vtkSetObjectMacro(X,vtkvmtkDoubleVector);
vtkGetObjectMacro(X,vtkvmtkDoubleVector);
vtkSetObjectMacro(B,vtkvmtkDoubleVector);
vtkGetObjectMacro(B,vtkvmtkDoubleVector);
int CheckSystem();
protected:
vtkvmtkLinearSystem();
~vtkvmtkLinearSystem();
vtkvmtkSparseMatrix* A;
vtkvmtkDoubleVector* X;
vtkvmtkDoubleVector* B;
private:
vtkvmtkLinearSystem(const vtkvmtkLinearSystem&); // Not implemented.
void operator=(const vtkvmtkLinearSystem&); // Not implemented.
};
#endif
|