PointShape Class Reference

Representation of a single point in 3-space (used to represent point lights and pinhole cameras). More...

#include <PointShape.h>

Inheritance diagram for PointShape:

Transformable Shape Intersectable SSEAligned

List of all members.

Public Member Functions

Intersection routines
virtual real_t getIntersection (const Ray &ray, SurfacePoint &pt)
 always returns an invalid intersection
virtual bool intersects (const Ray &ray, real_t tMax=INFINITY)
Core functionality
virtual void init ()
 Initializes this Transformable's world-space AABB, assuming a derived class has already filled in m_objSpaceAABB.
virtual void preview ()
virtual bool hasNormal () const
Sampling functionality
virtual real_t getSurfaceArea ()

Protected Member Functions

virtual void _getUV (SurfacePoint &pt) const
virtual void _getGeometricNormal (SurfacePoint &pt) const


Detailed Description

Representation of a single point in 3-space (used to represent point lights and pinhole cameras).

Author:
Travis Fischer (fisch0920@gmail.com)

Matthew Jacobs (jacobs.mh@gmail.com)

Date:
Fall 2008

Definition at line 17 of file PointShape.h.


Member Function Documentation

real_t PointShape::getIntersection ( const Ray ray,
SurfacePoint pt 
) [virtual]

always returns an invalid intersection

Implements Intersectable.

Definition at line 25 of file PointShape.cpp.

bool PointShape::intersects ( const Ray ray,
real_t  tMax = INFINITY 
) [virtual]

Returns:
false

Reimplemented from Intersectable.

Definition at line 29 of file PointShape.cpp.

void PointShape::init (  )  [virtual]

Initializes this Transformable's world-space AABB, assuming a derived class has already filled in m_objSpaceAABB.

Reimplemented from Transformable.

Definition at line 18 of file PointShape.cpp.

void PointShape::preview (  )  [virtual]

Display a crude OpenGL preview of this shape

Note:
Default implementation sets the ModelView matrix appropriately with respect to this Transformable's transformation

Reimplemented from Transformable.

Definition at line 42 of file PointShape.cpp.

bool PointShape::hasNormal (  )  const [virtual]

Returns:
whether or not this Shape supports the concept of a geometric surface normal defined over its surface
Note:
default implementation returns true

Reimplemented from Shape.

Definition at line 52 of file PointShape.cpp.

virtual real_t PointShape::getSurfaceArea (  )  [inline, virtual]

Returns:
the total surface area of this shape

Reimplemented from Shape.

Definition at line 48 of file PointShape.h.

void PointShape::_getUV ( SurfacePoint pt  )  const [protected, virtual]

Implements Shape.

Definition at line 33 of file PointShape.cpp.

void PointShape::_getGeometricNormal ( SurfacePoint pt  )  const [protected, virtual]

Implements Shape.

Definition at line 38 of file PointShape.cpp.


The documentation for this class was generated from the following files:

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6