File: stage.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 (92 lines) | stat: -rw-r--r-- 2,731 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
class LightSource
{
%TypeHeaderCode
	#include <BALL/VIEW/KERNEL/stage.h>
%End
	public:

	enum Types
	{
		AMBIENT = 0,
		POSITIONAL,
		DIRECTIONAL
	};

	LightSource() throw();
	LightSource(const LightSource&) throw();
	~LightSource() throw();
	const Vector3& getPosition() const throw();
	void setPosition(const Vector3&) throw();
	const Vector3& getDirection() const throw();
	void setDirection(const Vector3&) throw();
	const Angle& getAngle() const throw();
	void setAngle(const Angle&) throw();
	float getIntensity() const throw();
	void setIntensity(float) throw();
	const ColorRGBA& getColor() const throw();
	void setColor(const ColorRGBA&) throw();
	Index getType() const throw();
	void setType(Types) throw();
	void setRelativeToCamera(bool) throw();
	bool isRelativeToCamera() const throw();
};

class Camera
{
%TypeHeaderCode
	#include <BALL/VIEW/KERNEL/stage.h>
%End
	public:

	Camera() throw();
	Camera(const Camera&) throw();
	Camera(const Vector3& , const Vector3& , const Vector3& ) throw();
	~Camera() throw();
	const Vector3& getViewPoint() const throw();
	void setViewPoint(const Vector3& ) throw();
	const Vector3& getLookAtPosition() const throw();
	void setLookAtPosition(const Vector3& ) throw();
	const Vector3& getLookUpVector() const throw();
	void setLookUpVector(const Vector3& ) throw() ;
	float getDistance() const throw() ;
	Vector3 getViewVector() const throw() ;
	Vector3 getRightVector() const throw() ;
	void translate(const Vector3& ) throw() ;
	void rotate(const Quaternion&, const Vector3&) throw();
	virtual void clear() throw();
	String toString() const	throw();
	bool readFromString(const String&) throw();
};

class Stage
{
%TypeHeaderCode
	#include <BALL/VIEW/KERNEL/stage.h>
%End
	public:

	Stage() throw();
	Stage(const Stage& ) throw();
	~Stage() throw();
	virtual void clear() throw();
	virtual void addLightSource(const LightSource& ) throw();
	virtual void removeLightSource(const LightSource& ) throw();
	void clearLightSources() throw();

	virtual Camera& getCamera() throw();
	virtual void setCamera(const Camera& ) throw();
	virtual const ColorRGBA& getBackgroundColor() const throw();
	virtual void setBackgroundColor(const ColorRGBA& ) throw();
	virtual void showCoordinateSystem(bool ) throw();
	bool coordinateSystemEnabled() const throw();
	void setEyeDistance(float) throw();
	float getEyeDistance() const throw();
	void setFocalDistance(float) throw();
	float getFocalDistance() const throw();
	void setSwapSideBySideStereo(bool) throw();
	bool swapSideBySideStereo() const throw();
	float getFogIntensity() const	throw();
	void setFogIntensity(float) throw();
	Vector3 calculateRelativeCoordinates(Vector3) const;
	Vector3 calculateAbsoluteCoordinates(Vector3) const;
};