Public Member Functions | Static Public Member Functions | Properties

CC3ModelSampleFactory Class Reference

CC3ModelSampleFactory is a convenience utility for creating sample 3D models for experimentation. More...

#import <CC3ModelSampleFactory.h>

Collaboration diagram for CC3ModelSampleFactory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(CC3MeshNode *) - makeLogoTexturedTeapotNamed:
(CC3MeshNode *) - makeMultiColoredTeapotNamed:
(CC3MeshNode *) - makeUniColoredTeapotNamed:withColor:

Static Public Member Functions

(CC3ModelSampleFactory *) + factory

Properties

CC3VertexArrayMeshmulticoloredTeapotMesh
CC3VertexArrayMeshtexturedTeapotMesh
CC3VertexArrayMeshunicoloredTeapotMesh

Detailed Description

CC3ModelSampleFactory is a convenience utility for creating sample 3D models for experimentation.

The design pattern is a singleton factory object, with methods for creating instances of various 3D models.

Access to the factory instance is through the factory class method.

This class should be considered for testing and experimental use only. Unless you really need teapots in your application, there is no need to include this class, or the teapot.h data header file, in any finished application. Doing so will just bloat the size of the application unnecessarily.


Member Function Documentation

+ (CC3ModelSampleFactory*) factory

Returns the singleton instance.

- (CC3MeshNode*) makeLogoTexturedTeapotNamed: (NSString *)  aName

Returns an allocated, initialized, autoreleased instance of a teapot in a particular color.

- (CC3MeshNode*) makeMultiColoredTeapotNamed: (NSString *)  aName

Returns an allocated, initialized, autoreleased instance of a teapot painted with a funky color gradient.

- (CC3MeshNode*) makeUniColoredTeapotNamed: (NSString *)  aName
withColor: (ccColor4F)  color 

Returns an allocated, initialized, autoreleased instance of a teapot in a particular color.


Property Documentation

- (CC3VertexArrayMesh *) multicoloredTeapotMesh [read, assign]

An instance of a teapot mesh that includes a vertex color array.

- (CC3VertexArrayMesh *) texturedTeapotMesh [read, assign]

An instance of a teapot mesh that includes a texture coordinate map.

- (CC3VertexArrayMesh *) unicoloredTeapotMesh [read, assign]

An instance of a teapot mesh that will be covered in a single color.


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