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

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

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






CX3DEnvmapShaderInspector 






Inherits From:	CX3DGenericShaderInspector : View : Responder : Object

Declared In:	i3d/CX3DEnvmapShaderInspector.h





Class Description

CX3DEnvmapShaderInspector is a subclass of CX3DGenericShaderInspector that provides a special interface for managing environment map. This inspector has been designed to work with instance of the class CX3DEnvmapShader. The CX3DEnvmapShader returns a shader parameter with its - (CXArg*) environMapArg method. This parameter is taken in account by the CX3DEnvmapShaderInspector and all other parameters are treated normally by the CX3DGenericShaderInspector.




Instance Variables

id   envmapValue;



envmapValue 	This instance is private. It's the view that contains the interface used to interact with the environ map parameter.



Method Types

Allocating,Initializing, freeing

	+ alloc

Method implemented as a subclass of CX3DGenericShaderInspector

	- shouldUseArg:
	- shouldUseScale
	- makeInterfaceBeforeAllAt:
	- uninit
New user interface method
	- anEnvmapValueHaveChange: 




Class Methods

alloc
	+ alloc
This method allocates a new instance of CX3DEnvmapShaderInspector. As for all inspectors inside intuitiv'3d, there is only one instance. 


Instance Methods

anEnvmapValueHaveChange:
			- anEnvmapValueHaveChange: sender

					This method is called by the interface added to tell the inspector that the user have change a value. This method updates the current shader (the shader instance variable) and calls [super aValueHaveChange:] 

See also:  - aValueHaveChange: (CX3DGenericShaderInspector)


makeInterfaceBeforeAllAt:
			- makeInterfaceBeforeAllAt:(NXCoord*) py

					This method is called by the super class (CX3DGenericShaderInspector) to give the subclass a chance to insert at the beginning of the interface list its own interface. The implementation of this method adds ([self addSubview]) the interface that manage the environment map. 

See also:  makeInterfaceBeforeAllAt:(NXCoord*) py (CX3DGenericShaderInspector) - uninit


shouldUseArg:
			- (BOOL) shouldUseArg:(unsigned int) argNum

					This method is called by the super class (CX3DGenericShaderInspector) to find out which argument should be taken in account by itself and which argument the subclass manages. This method asks the shader which argument requires an environ map and returns NO if argNum is the index of this argument. Return YES otherwise.

See also:  - (BOOL) shouldUseArg:(unsigned int) argNum (CX3DGenericShaderInspector)


shouldUseScale:
			- (BOOL) shouldUseScale

					This method is called by the super class (CX3DGenericShaderInspector) to discover  if  the subclass wants a scale interface for it's shader. The scale interface allows the user to apply a scale transformation on the shader before its rendering. The implementation of this method always returns YES. 

See also:  - (BOOL) shouldUseScale (CX3DGenericShaderInspector)

uninit
			- uninit

					This method is called by the super class (CX3DGenericShaderInspector) to ask the subclass to unbuild the interface added by the method makeInterfaceBeforeAllAt:. This method generally calls removeFromSuperview to all new interface views.

See also:  - uninit (CX3DGenericShaderInspector) - makeInterfaceBeforeAllAt:

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