aboutsummaryrefslogtreecommitdiff
path: root/tool_src/QvLib/QvCylinder.h
blob: 9a762df990f5c0ba983c8aba67a6c1f8ba451c65 (plain)
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
#ifndef  _QV_CYLINDER_
#define  _QV_CYLINDER_

#include <QvSFBitMask.h>
#include <QvSFFloat.h>
#include <QvSubNode.h>

class QvCylinder : public QvNode {

    QV_NODE_HEADER(QvCylinder);

  public:

    enum Part {			// Cylinder parts
	SIDES	= 0x01,			// The tubular part
	TOP	= 0x02,			// The top circular face
	BOTTOM	= 0x04,			// The bottom circular face
	ALL	= 0x07,			// All parts
    };

    // Fields
    QvSFBitMask		parts;		// Visible parts of cylinder
    QvSFFloat		radius;		// Radius in x and z dimensions
    QvSFFloat		height;		// Size in y dimension
};

#endif /* _QV_CYLINDER_ */