File: rectangular.hpp

package info (click to toggle)
python-visual 1%3A5.12-1.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,672 kB
  • ctags: 7,636
  • sloc: cpp: 15,593; sh: 9,615; ansic: 6,631; python: 4,737; makefile: 385
file content (36 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (3)
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
#ifndef VPYTHON_RECTANGULAR_HPP
#define VPYTHON_RECTANGULAR_HPP

#include "primitive.hpp"

namespace cvisual {

class rectangular : public primitive
{
 protected:
	double width;
	double height;
	rectangular();
	rectangular( const rectangular& other);

	void apply_transform( const view& );

 public:
	virtual ~rectangular();
	
	void set_length( double l);
	double get_length();
	
	void set_height( double h);
	double get_height();
	
	void set_width( double w);
	double get_width();
	
	vector get_size();
	void set_size( const vector&);	
};	
	
} // !namespace cvisual

#endif // !defined VPYTHON_RECTANGULAR_HPP