ftp.nice.ch/pub/next/developer/objc/api/intuitiv3d_API.s.tar.gz#/i3dApi/Documentation/Classes/I3DModule.rtf

This is I3DModule.rtf in view mode; [Download] [Up]

 intuitiv'3d API documentation Copyright ©1993 by Cub'x SystÜmes. All Rights Reserved.






I3DModule 






Inherits From:	 Object

Declared In:	i3d/I3DModule.h





Class Description

I3DModule is an abstract super-class used to make some subclasses that informs  intuitiv'3d engine how to make the read-only section associated to a module (.i3dm file).  You have to include into your new bundle at least on subclass of I3DModule. For each I3DModule subclass found, a new section is created. All I3DModule class method have to be overloaded by your subclasses. 
The files Co.[hm] in the Examples/CustomObject ,  AdvancedObject.[hm] , AdvancedShader.[hm] in the Example/AdvancedObject folder are some example of I3DModule subclasses.


Instance Variables

There are no instance variables.

Method Types

Module description
	+ requestedSectionType
	+ fillObjectList: 
	+ moduleName
	+ unselectedImage
	+ selectedImage
		
Class Methods

fillObjectList:
	- fillObjectList:(List*) aList
This method is called by intuitiv'3d to discover which instance to put in the new section. You have to allocate one instance for each new classes, but you can allocate more than one instance of a new class for example to set different instance variable values. You must add all instance to the list using for example - addObject method.

See also: List class 


moduleName
	+ (const char*) moduleName
This method should returns the name of the module. This name will be used as the name of the section.


requestedSectionType
	+ (SectionType) requestedSectionType
This method should return whether your module contains some shaders or some 3d shapes. According to the section type, intuitiv'3d will create a section in the shader part of the library or in the object part. If your modules contains some shaders, you must return STShader. If your module contains some 3d shapes, you must return ST3DObject. If your module contains some new shader and some new 3d shapes, you can make to subclasses of I3DModule, one for shaders and one for 3d shapes. 


selectedImage
	+ (const char*)  selectedImage
This method should return the tiff name that you want to use for the section icon when the section is selected.You can return NULL to get a default icon. 


unselectedImage
	+ (const char*)  unselectedImage
This method should return the tiff name that you want to use for the section icon when the section is not selected.You can return NULL to get a default icon. 




These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.