File: regularData3D.sip

package info (click to toggle)
ball 1.5.0%2Bgit20180813.37fc53c-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 239,888 kB
  • sloc: cpp: 326,149; ansic: 4,208; python: 2,303; yacc: 1,778; lex: 1,099; xml: 958; sh: 322; makefile: 95
file content (63 lines) | stat: -rw-r--r-- 2,019 bytes parent folder | download | duplicates (4)
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
class RegularData3D
{
%TypeHeaderCode
	#include <BALL/DATATYPE/regularData3D.h>
	#include <BALL/PYTHON/EXTENSIONS/pyListHelper.h>
%End
	public:

	class IndexType
	{
		public:
		Position x;
		Position y;
		Position z;
	};

	RegularData3D() throw();
	RegularData3D(const RegularData3D&) throw(OutOfMemory);
	~RegularData3D() throw();
	void clear() throw();
	bool operator != (const RegularData3D&) const throw();
	bool operator == (const RegularData3D&) const throw();
	bool empty() const throw();
	bool isInside(const Vector3&) const throw();
	void swap(RegularData3D&);
	float getData(const IndexType&) const throw(OutOfGrid);
	float getData(Position) const throw(OutOfGrid);

	float operator [] (Position) const throw();
%MethodCode
	sipRes = sipCpp->operator [] (*a0);
%End

	float operator () (const Vector3&) const throw();
%MethodCode
	sipRes = sipCpp->operator () (*a0);
%End

	float getInterpolatedValue(const Vector3&) const throw(OutOfGrid);
	float getClosestValue(const Vector3&) const throw(OutOfGrid);
	IndexType getClosestIndex(const Vector3&) const throw(OutOfGrid);
	IndexType getLowerIndex(const Vector3&) const throw(OutOfGrid);
	const IndexType& getSize() const throw();
	const Vector3& getOrigin() const throw();
	const Vector3& getSpacing() const throw();
	void setOrigin(const Vector3&) throw();
	const Vector3& getDimension() const throw();
	void setDimension(const Vector3&) throw();
	void resize(const IndexType&) throw(OutOfMemory);
	void rescale(const IndexType&) throw(OutOfMemory);
	Vector3 getCoordinates(const IndexType&) const throw(OutOfGrid);
	Vector3 getCoordinates(Position) const throw(OutOfGrid);
	void getEnclosingValues
		(const Vector3&,
		 float, float, float, float,
		 float, float, float, float) const throw(OutOfGrid);
	void getEnclosingIndices
		(const Vector3&,
		 Position&, Position&, Position&, Position&,
		 Position&, Position&, Position&, Position&) const throw(OutOfGrid);
	void binaryWrite(const String&) const throw();
	void binaryRead(const String&) throw();
};