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

Box Class Reference

A Box is a solid object which is described by two corner points. More...

#include <Box.h>

Inheritance diagram for Box

Inheritance graph
[legend]
Collaboration diagram for Box:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { PROPERTY_POINT1 = 0x0300, PROPERTY_POINT2 = 0x0301 }

Public Methods

 DECLARE_CLASS (Box,Primitive)
 Box ()
virtual ~Box ()
virtual void setProperty (int nProperty,const Variant &value)
virtual void getProperty (int nProperty,Variant &vValue)const
virtual bool intersect (Ray *ray,IntersectionList *intersectionList)
virtual Vector3 getNormalVector (Intersection *intersection)
virtual bool getBounds (Bounds &bounds)const

Public Attributes

Vector3 point1
Vector3 point2

Static Public Attributes

SUPPORT_PRIMITIVE_STATISTIC
const Vector3 
normal_side [6]

Detailed Description

A Box is a solid object which is described by two corner points.

The other corner points can be calculated out of this information as there are only rectangular corners.


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

counter

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