coolray.org FAQ Contact Us
CoolRay Banner
CoolRay / Documentation
Main Page   Class Hierarchy   Compound List   Compound Members   Related Pages  

Cylinder Class Reference

A Cylinder is a solid object which can be described with 2 points and a radius. More...

#include <Cylinder.h>

Inheritance diagram for Cylinder

Inheritance graph
[legend]
Collaboration diagram for Cylinder:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { PROPERTY_CENTER1 = 0x0300, PROPERTY_CENTER2 = 0x0301, PROPERTY_RADIUS = 0x0302 }

Public Methods

 DECLARE_CLASS (Cylinder,Primitive)
 Cylinder ()
virtual ~Cylinder ()
virtual void setProperty (int nProperty,const Variant &value)
virtual void getProperty (int nProperty,Variant &vValue)const
virtual void initRender (Scene *pScene)
Matrix4 getCustomMatrix ()
virtual bool intersect (Ray *ray,IntersectionList *intersectionList)
virtual Vector3 getNormalVector (Intersection *intersection)
virtual Color getColor (Intersection *intersection)
virtual bool getBounds (Bounds &bounds)const

Public Attributes

Vector3 center1
Vector3 center2
double radius

Friends

class  IntersectionCylinder

Detailed Description

A Cylinder is a solid object which can be described with 2 points and a radius.


The documentation for this class was generated from the following file:
  • Cylinder.h
You are visitor No.

counter

Copyright (c) 2001 Stefan Michel, All Rights Reserved.
Last modified: