File: axial.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 (26 lines) | stat: -rw-r--r-- 555 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
#ifndef VPYTHON_AXIAL_HPP
#define VPYTHON_AXIAL_HPP

#include "primitive.hpp"

namespace cvisual {

/** A subbase class used to only export 'radius' as a property once to Python. */
class axial : public primitive
{
 protected:
 	/// The radius of whatever body inherits from this class.
	double radius;
	axial();
	axial( const axial& other);
	
 public:
 	virtual ~axial();
 	void set_radius(double r);
 	double get_radius();
	virtual void get_material_matrix( const view&, tmatrix& out );
};

} // !namespace cvisual

#endif // !defined VPYTHON_AXIAL_HPP