cortex-vfx:mainlinemirror.git
8 years agoFixing houdini build. 5.0.0
john.imageengine [Fri, 30 Apr 2010 22:31:24 +0000 (22:31 +0000)]
Fixing houdini build.

git-svn-id: http://cortex-vfx.googlecode.com/svn/tags/5.0.0@3278 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoTagged version 5.0.0.
john.imageengine [Fri, 30 Apr 2010 21:20:38 +0000 (21:20 +0000)]
Tagged version 5.0.0.

git-svn-id: http://cortex-vfx.googlecode.com/svn/tags/5.0.0@3277 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded a maya ui for the ClassVectorParameter.
john.imageengine [Fri, 30 Apr 2010 17:23:03 +0000 (17:23 +0000)]
Added a maya ui for the ClassVectorParameter.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3271 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoadded SmoothSkinningData related files for review purposes
carsten.kolve [Fri, 30 Apr 2010 07:27:01 +0000 (07:27 +0000)]
added SmoothSkinningData related files for review purposes

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3270 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded a todo.
john.imageengine [Thu, 29 Apr 2010 23:11:41 +0000 (23:11 +0000)]
Added a todo.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3269 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded more test cases for IgnoredExceptionsTest and fixed a problem I just created.
john.imageengine [Thu, 29 Apr 2010 19:02:59 +0000 (19:02 +0000)]
Added more test cases for IgnoredExceptionsTest and fixed a problem I just created.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3268 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoFixed bug which prevented IgnoredExceptions ignoring an exception type when one of...
john.imageengine [Thu, 29 Apr 2010 18:48:45 +0000 (18:48 +0000)]
Fixed bug which prevented IgnoredExceptions ignoring an exception type when one of its base classes had been specified.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3267 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded a menu option to remove the class, and got the label font matching the other...
john.imageengine [Tue, 27 Apr 2010 23:39:51 +0000 (23:39 +0000)]
Added a menu option to remove the class, and got the label font matching the other labels elsewhere.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3262 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoMaking appropriate indent and font queries available for other classes wanting to...
john.imageengine [Tue, 27 Apr 2010 23:34:47 +0000 (23:34 +0000)]
Making appropriate indent and font queries available for other classes wanting to emulate the CompoundParameterUI behaviour.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3261 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoUpdating to use typeName() now we don't carry a name per-se.
tom.imageengine [Tue, 27 Apr 2010 00:11:07 +0000 (00:11 +0000)]
Updating to use typeName() now we don't carry a name per-se.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3260 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoMissing swizzle.
tom.imageengine [Mon, 26 Apr 2010 16:04:03 +0000 (16:04 +0000)]
Missing swizzle.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3258 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoOptimised callbacks for PresetsOnlyParameterUI so they only do anything when the...
john.imageengine [Fri, 23 Apr 2010 23:43:00 +0000 (23:43 +0000)]
Optimised callbacks for PresetsOnlyParameterUI so they only do anything when the plug has been set. Also worked around problem where the plug could be dead already when a callback occurs for some other plug.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3254 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoProperly suppressing exceptions where the type is a funny string unrelated to the...
john.imageengine [Fri, 23 Apr 2010 22:09:36 +0000 (22:09 +0000)]
Properly suppressing exceptions where the type is a funny string unrelated to the exception type.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3244 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoCompoundObject now raises KeyError rather than IndexError for missing keys. Also...
john.imageengine [Fri, 23 Apr 2010 21:34:37 +0000 (21:34 +0000)]
CompoundObject now raises KeyError rather than IndexError for missing keys. Also modified binding to avoid the construction of unecessary temporary strings.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3243 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded an IgnoredExceptions context manager for use with the with statement.
john.imageengine [Fri, 23 Apr 2010 19:21:23 +0000 (19:21 +0000)]
Added an IgnoredExceptions context manager for use with the with statement.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3242 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoColour correction not implemented yet.
tom.imageengine [Fri, 23 Apr 2010 00:33:36 +0000 (00:33 +0000)]
Colour correction not implemented yet.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3241 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoA basic shader implementing the Marschner et al reflectance model with a single light...
tom.imageengine [Fri, 23 Apr 2010 00:29:15 +0000 (00:29 +0000)]
A basic shader implementing the Marschner et al reflectance model with a single light source.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3240 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoClassParameterUI can now filter the list of classes to be shown in the menu.
john.imageengine [Fri, 23 Apr 2010 00:01:46 +0000 (00:01 +0000)]
ClassParameterUI can now filter the list of classes to be shown in the menu.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3239 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded callbacks for when a ClassParameter or ClassVectorParameter has been updated...
john.imageengine [Thu, 22 Apr 2010 23:51:32 +0000 (23:51 +0000)]
Added callbacks for when a ClassParameter or ClassVectorParameter has been updated on a ParameterisedHolder. Used this to improve the update of the ClassParameterUI.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3238 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRemoving stub directories.
tom.imageengine [Thu, 22 Apr 2010 18:53:27 +0000 (18:53 +0000)]
Removing stub directories.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3237 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding an Op to create lookup tables from a Marschner et al. reflectance model with...
tom.imageengine [Thu, 22 Apr 2010 17:58:24 +0000 (17:58 +0000)]
Adding an Op to create lookup tables from a Marschner et al. reflectance model with a given set of parameters.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3236 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdds a new Parameter class derived from CompoundParameter to allow quicker creation...
tom.imageengine [Thu, 22 Apr 2010 00:07:03 +0000 (00:07 +0000)]
Adds a new Parameter class derived from CompoundParameter to allow quicker creation of parameters pertaining to the Marschner et al. reflectance model implementation.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3235 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding C++ implementation to match RSL version.
tom.imageengine [Wed, 21 Apr 2010 23:56:17 +0000 (23:56 +0000)]
Adding C++ implementation to match RSL version.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3234 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoadding tear down methods
andrewk.imageengine [Wed, 21 Apr 2010 23:35:53 +0000 (23:35 +0000)]
adding tear down methods

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3233 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agosetting ignore flags
andrewk.imageengine [Wed, 21 Apr 2010 23:23:08 +0000 (23:23 +0000)]
setting ignore flags

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3232 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdds a CurvesPrimitiveOp to calculate v tangents.
tom.imageengine [Wed, 21 Apr 2010 20:59:33 +0000 (20:59 +0000)]
Adds a CurvesPrimitiveOp to calculate v tangents.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3231 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoUsing UnitTest asserts.
tom.imageengine [Wed, 21 Apr 2010 16:41:23 +0000 (16:41 +0000)]
Using UnitTest asserts.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3230 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoTest for optional parameter serialisation.
tom.imageengine [Wed, 21 Apr 2010 16:21:27 +0000 (16:21 +0000)]
Test for optional parameter serialisation.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3229 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoCorrect extraction of value
tom.imageengine [Wed, 21 Apr 2010 01:21:38 +0000 (01:21 +0000)]
Correct extraction of value

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3228 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAllows parameters to opt-out of serialisation.
tom.imageengine [Wed, 21 Apr 2010 00:04:10 +0000 (00:04 +0000)]
Allows parameters to opt-out of serialisation.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3227 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdds tests for new member accessors in CompoundData and CompoundObject.
tom.imageengine [Tue, 20 Apr 2010 23:30:46 +0000 (23:30 +0000)]
Adds tests for new member accessors in CompoundData and CompoundObject.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3226 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdds member accessor with an option to create requested items if they don't already...
tom.imageengine [Tue, 20 Apr 2010 23:27:59 +0000 (23:27 +0000)]
Adds member accessor with an option to create requested items if they don't already exist. Now uses InternedStrings for arguments, and returns raw pointers to match CompoundData implementation.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3225 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdds member accessor with an option to create requested items if they don't already...
tom.imageengine [Tue, 20 Apr 2010 23:25:52 +0000 (23:25 +0000)]
Adds member accessor with an option to create requested items if they don't already exist.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3224 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded an accessor for the substitutions in SubstitutedDict.
john.imageengine [Tue, 20 Apr 2010 21:15:16 +0000 (21:15 +0000)]
Added an accessor for the substitutions in SubstitutedDict.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3223 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoCleaning up callbackid to remove circular reference and allow destruction.
john.imageengine [Tue, 20 Apr 2010 17:47:08 +0000 (17:47 +0000)]
Cleaning up callbackid to remove circular reference and allow destruction.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3222 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoFixed a bug in CompoundVectorParameter.valueValid() - the error message construction...
john.imageengine [Tue, 20 Apr 2010 17:44:22 +0000 (17:44 +0000)]
Fixed a bug in CompoundVectorParameter.valueValid() - the error message construction used a nonexistent variable and therefore threw an Exception prematurely.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3221 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoFixed bug which meant that the parameters of Shaders were not copied correctly.
john.imageengine [Tue, 20 Apr 2010 00:10:05 +0000 (00:10 +0000)]
Fixed bug which meant that the parameters of Shaders were not copied correctly.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3220 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded some docs.
john.imageengine [Mon, 19 Apr 2010 21:37:24 +0000 (21:37 +0000)]
Added some docs.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3219 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoMoving IECoreGL out of contrib directory.
lucio.imageengine [Mon, 19 Apr 2010 18:04:19 +0000 (18:04 +0000)]
Moving IECoreGL out of contrib directory.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3218 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoIECoreMaya.TestProgram will now load any plugins requested instead of being hardcoded...
john.imageengine [Sat, 17 Apr 2010 00:54:02 +0000 (00:54 +0000)]
IECoreMaya.TestProgram will now load any plugins requested instead of being hardcoded to load IECore. Also fixed some error handling which had errors in it.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3217 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoUsing Shader::constant for drawing wireframe,bounding box,etc.
lucio.imageengine [Fri, 16 Apr 2010 23:19:10 +0000 (23:19 +0000)]
Using Shader::constant for drawing wireframe,bounding box,etc.
Adding template method in Shader that accept simple types such as float, Imath::V3f, Color3f. Used by Primitive when setting the constant shader color.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3216 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRefactored support code for test cases. SplitStream is now not duplicated in every...
john.imageengine [Fri, 16 Apr 2010 23:17:07 +0000 (23:17 +0000)]
Refactored support code for test cases. SplitStream is now not duplicated in every test and is instead in IECore as CompoundStream. Custom TestCase and TestProgram classes are now in IECoreMaya so they can be used in other projects. Instead of using a MayaTestSuite to run maya tests (which prevents them being run correctly on their own) the new file behaviour is now implemented in a setUp method of MayaTestCase - maya tests should just derive that class.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3215 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agobug fix: eliminating ';' character on if statement.
lucio.imageengine [Fri, 16 Apr 2010 21:46:15 +0000 (21:46 +0000)]
bug fix: eliminating ';' character on if statement.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3214 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoFixed menu code to work with Maya 2011, where the number of arguments to the postMenu...
john.imageengine [Fri, 16 Apr 2010 18:42:49 +0000 (18:42 +0000)]
Fixed menu code to work with Maya 2011, where the number of arguments to the postMenuCommand appears to have changed.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3213 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoReverting to maya original shader when we are done rendering with IECoreGL. Also...
lucio.imageengine [Fri, 16 Apr 2010 00:11:37 +0000 (00:11 +0000)]
Reverting to maya original shader when we are done rendering with IECoreGL. Also ditching the material code since our default shader will not use it.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3212 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoUsing facingRatio by default and fixing it.
lucio.imageengine [Thu, 15 Apr 2010 22:44:36 +0000 (22:44 +0000)]
Using facingRatio by default and fixing it.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3211 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoReverting last changes and instead adding a special case for bool vectors.
lucio.imageengine [Thu, 15 Apr 2010 21:53:44 +0000 (21:53 +0000)]
Reverting last changes and instead adding a special case for bool vectors.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3210 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRedesign on Primitive base class and derived classes.
lucio.imageengine [Thu, 15 Apr 2010 18:07:40 +0000 (18:07 +0000)]
Redesign on Primitive base class and derived classes.
Eliminating the members on Primitive that pointed to standard vertex buffers: points,normals,colors,textCoords.
Eliminating special primVars passed to constructors on Primitive's derived classes. They are now passed by addPrimitiveVariable() function.
Added ToGLPointsPrimitive file to simplify Renderer code.
ShaderStateComponent creates facingRatio shader if no shader is defined.
Shader class now handles the openGL old-fashioned vertex buffers automatically. So we keep compatibility with current shaders that rely on gl_* attributes.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3209 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoMoving build cache location to the same as for other ie builds.
john.imageengine [Thu, 15 Apr 2010 16:50:20 +0000 (16:50 +0000)]
Moving build cache location to the same as for other ie builds.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3208 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded support for specifying coshaders through IECoreRI::Renderer.
john.imageengine [Thu, 15 Apr 2010 02:36:13 +0000 (02:36 +0000)]
Added support for specifying coshaders through IECoreRI::Renderer.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3207 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoMore robust handling of StringVectorData parameters. Before we were getting ridiculou...
john.imageengine [Thu, 15 Apr 2010 00:50:56 +0000 (00:50 +0000)]
More robust handling of StringVectorData parameters. Before we were getting ridiculously lucky in that the gcc implementation of std::string just so happens to have the same size as a char * and works if assumed to be one. This is only the case because of an optimisation they use to avoid having to store the size of the buffer within the string itself. Also removed code working around 3delight bugs for 0 length arrays as they are now fixed. Added test cases to verify that this all works.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3206 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoConverting unecessary uses of smart pointers into raw pointers.
john.imageengine [Wed, 14 Apr 2010 23:22:24 +0000 (23:22 +0000)]
Converting unecessary uses of smart pointers into raw pointers.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3205 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoCorrecting SLOReader extension test, and adding a test that checks the case that...
john.imageengine [Wed, 14 Apr 2010 23:05:26 +0000 (23:05 +0000)]
Correcting SLOReader extension test, and adding a test that checks the case that the extension testing code was meant to be avoiding in the first case.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3204 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRemoving accidentally committed debug code.
john.imageengine [Wed, 14 Apr 2010 22:46:54 +0000 (22:46 +0000)]
Removing accidentally committed debug code.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3203 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoFixed rethrowing of exception. The previous code was copy constructing a new std...
john.imageengine [Wed, 14 Apr 2010 22:41:30 +0000 (22:41 +0000)]
Fixed rethrowing of exception. The previous code was copy constructing a new std::exception from e at the point of the rethrow, thereby slicing away the derived type and associated what().

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3202 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRenaming headers to match naming convention.
lucio.imageengine [Wed, 14 Apr 2010 20:50:32 +0000 (20:50 +0000)]
Renaming headers to match naming convention.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3201 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRemoving private implementation from public interface.
john.imageengine [Wed, 14 Apr 2010 18:46:24 +0000 (18:46 +0000)]
Removing private implementation from public interface.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3200 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded missing license and moved import to somewhere a bit more conventional.
john.imageengine [Wed, 14 Apr 2010 18:45:41 +0000 (18:45 +0000)]
Added missing license and moved import to somewhere a bit more conventional.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3199 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoMoved ParameterUI subclasses into their own files.
john.imageengine [Wed, 14 Apr 2010 18:15:34 +0000 (18:15 +0000)]
Moved ParameterUI subclasses into their own files.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3198 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded function to find all instances of a given type of ui.
john.imageengine [Wed, 14 Apr 2010 00:41:21 +0000 (00:41 +0000)]
Added function to find all instances of a given type of ui.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3197 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded methods to ClassVectorParameter to allow setting and getting of one class at...
john.imageengine [Wed, 14 Apr 2010 00:40:01 +0000 (00:40 +0000)]
Added methods to ClassVectorParameter to allow setting and getting of one class at a time.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3196 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoFixing bug whereby CompoundParameters with no children were considered to be presetsO...
john.imageengine [Tue, 13 Apr 2010 00:30:54 +0000 (00:30 +0000)]
Fixing bug whereby CompoundParameters with no children were considered to be presetsOnly==true, even though they have no presets.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3195 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRefactored ParameterUI classes to derive from UIElement. This gives us the benefits...
john.imageengine [Mon, 12 Apr 2010 23:01:18 +0000 (23:01 +0000)]
Refactored ParameterUI classes to derive from UIElement. This gives us the benefits of the UIElement methods in implementations, and also provides an explicit mechanism for ParameterUI classes to specify the old _layout field they were filling in implicitly (several weren't doing this correctly).

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3194 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded a method to find the parent of a UIElement.
john.imageengine [Mon, 12 Apr 2010 22:56:10 +0000 (22:56 +0000)]
Added a method to find the parent of a UIElement.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3193 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRemoving obsolete ParameterUI subclass.
john.imageengine [Mon, 12 Apr 2010 21:16:11 +0000 (21:16 +0000)]
Removing obsolete ParameterUI subclass.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3192 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRefactored the ui code for parameters which only accept presets. Rather than complica...
john.imageengine [Mon, 12 Apr 2010 21:08:23 +0000 (21:08 +0000)]
Refactored the ui code for parameters which only accept presets. Rather than complicate the implementation of all ParameterUI classes we now have a single class specifically for dealing with such parameters. This class also properly deals with updating the value label when the value is changed by some other means than the menu - for instance a setAttr or undo command.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3191 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding Shader vertex parameter functions and uniform from vector functions.
lucio.imageengine [Mon, 12 Apr 2010 18:39:23 +0000 (18:39 +0000)]
Adding Shader vertex parameter functions and uniform from vector functions.
Using new functionality in Primitive.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3190 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded methods to expand and collapse CompoundParameterUIs.
john.imageengine [Mon, 12 Apr 2010 18:03:23 +0000 (18:03 +0000)]
Added methods to expand and collapse CompoundParameterUIs.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3189 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding BoolVectorData to despatchTypedData.
lucio.imageengine [Sat, 10 Apr 2010 01:15:15 +0000 (01:15 +0000)]
Adding BoolVectorData to despatchTypedData.
Updating the definition of NumericTypedData in TypedTraits to (1)be backward compatible and (2)conceptually correct since boolean should not be considered numeric.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3188 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded accessor for the searchpaths for ClassVectorParameter, and made sure that attem...
john.imageengine [Fri, 9 Apr 2010 20:56:10 +0000 (20:56 +0000)]
Added accessor for the searchpaths for ClassVectorParameter, and made sure that attempts to call setClasses() with duplicate parameter names give a descriptive exception and don't leave the parameter in a half complete state.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3187 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoFixed bug which prevented replace working on a ui whose frameLayout hadn't been opened.
john.imageengine [Fri, 9 Apr 2010 20:35:43 +0000 (20:35 +0000)]
Fixed bug which prevented replace working on a ui whose frameLayout hadn't been opened.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3186 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoFixing problem which caused attribute editor replace operations to be excessively...
john.imageengine [Fri, 9 Apr 2010 18:12:50 +0000 (18:12 +0000)]
Fixing problem which caused attribute editor replace operations to be excessively slow.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3185 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoSupport for holding IECore::ClassVectorParameters on IECoreMaya::ParameterisedHolders...
john.imageengine [Fri, 9 Apr 2010 01:07:15 +0000 (01:07 +0000)]
Support for holding IECore::ClassVectorParameters on IECoreMaya::ParameterisedHolders. UI to follow.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3184 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoIFFFile doesnt crash on bunk files now
andrewk.imageengine [Fri, 9 Apr 2010 00:34:59 +0000 (00:34 +0000)]
IFFFile doesnt crash on bunk files now

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3183 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoRenaming parameter => uniformParameter in Shader class. Ready to add varyingParameter...
lucio.imageengine [Fri, 9 Apr 2010 00:04:57 +0000 (00:04 +0000)]
Renaming parameter => uniformParameter in Shader class. Ready to add varyingParameter functions.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3182 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoUsing shader object to set uniform shader parameters instead of creating a temporary...
lucio.imageengine [Thu, 8 Apr 2010 23:18:12 +0000 (23:18 +0000)]
Using shader object to set uniform shader parameters instead of creating a temporary ShaderStateComponent.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3181 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding test case showing crash on Reader when file size = 0.
lucio.imageengine [Thu, 8 Apr 2010 22:54:47 +0000 (22:54 +0000)]
Adding test case showing crash on Reader when file size = 0.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3180 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding comment.
lucio.imageengine [Thu, 8 Apr 2010 21:41:56 +0000 (21:41 +0000)]
Adding comment.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3178 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAvoiding call to Slo_SetShader if the filename extension is not 'sdl' to prevent...
lucio.imageengine [Thu, 8 Apr 2010 21:19:51 +0000 (21:19 +0000)]
Avoiding call to Slo_SetShader if the filename extension is not 'sdl' to prevent seg faults.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3177 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoDisabling the color vector once i'm done with it.
lucio.imageengine [Thu, 8 Apr 2010 00:18:37 +0000 (00:18 +0000)]
Disabling the color vector once i'm done with it.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3175 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoadding # as exception character
andrewk.imageengine [Thu, 8 Apr 2010 00:02:34 +0000 (00:02 +0000)]
adding # as exception character

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3174 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoEnabling per-vertex color in CurvesPrimitive.
lucio.imageengine [Wed, 7 Apr 2010 23:10:28 +0000 (23:10 +0000)]
Enabling per-vertex color in CurvesPrimitive.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3173 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoOptimizing vertex attribute setup on Primitive by precomputing the map from shader...
lucio.imageengine [Wed, 7 Apr 2010 22:09:28 +0000 (22:09 +0000)]
Optimizing vertex attribute setup on Primitive by precomputing the map from shader attribute ids to float/int arrays.
Optimizing CurvesPrimitive render by using the 'first' parameter in the glDrawArrays.
Also, calling setVertexAttributes() so shaders rendering curves can get custom prim vars.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3172 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded a ClassVectorParameter along with tests.
john.imageengine [Wed, 7 Apr 2010 20:48:22 +0000 (20:48 +0000)]
Added a ClassVectorParameter along with tests.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3171 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding correct runTimeTyped registration.
john.imageengine [Wed, 7 Apr 2010 20:47:19 +0000 (20:47 +0000)]
Adding correct runTimeTyped registration.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3170 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded a maya ui implementation for the ClassParameter. This necessitated a refactorin...
john.imageengine [Tue, 6 Apr 2010 22:32:54 +0000 (22:32 +0000)]
Added a maya ui implementation for the ClassParameter. This necessitated a refactoring of the CompoundParameter ui to allow subclassing and to allow reconstruction of the ui if the child parameters change.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3169 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoCan now specify which button is used to open the menu when creating a popup menu...
john.imageengine [Tue, 6 Apr 2010 22:15:02 +0000 (22:15 +0000)]
Can now specify which button is used to open the menu when creating a popup menu with IECoreMaya.createMenu.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3168 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoPrivatising some member variables, and simplifying the code for their creation.
john.imageengine [Tue, 6 Apr 2010 22:13:46 +0000 (22:13 +0000)]
Privatising some member variables, and simplifying the code for their creation.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3167 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoeliminating empty groups during eliminateObject.
lucio.imageengine [Tue, 6 Apr 2010 21:42:40 +0000 (21:42 +0000)]
eliminating empty groups during eliminateObject.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3166 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoBinding IECoreGL.Primitive with StateComponents.
lucio.imageengine [Tue, 6 Apr 2010 20:59:14 +0000 (20:59 +0000)]
Binding IECoreGL.Primitive with StateComponents.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3165 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoBug fix on removeObject command. Replacing logic OR by bit operation OR to enforce...
lucio.imageengine [Tue, 6 Apr 2010 17:46:34 +0000 (17:46 +0000)]
Bug fix on removeObject command. Replacing logic OR by bit operation OR to enforce executing the two sides of the operation.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3164 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding test case showing problem on the renderer removeObject command
lucio.imageengine [Tue, 6 Apr 2010 16:47:30 +0000 (16:47 +0000)]
Adding test case showing problem on the renderer removeObject command

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3163 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoSimplified constructor to always use a frameLayout for self._layout. Corrected docume...
john.imageengine [Tue, 6 Apr 2010 00:07:04 +0000 (00:07 +0000)]
Simplified constructor to always use a frameLayout for self._layout. Corrected documentation for withCompoundFrame now I've figured out what it really does.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3160 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoExtended todo.
john.imageengine [Mon, 5 Apr 2010 23:22:17 +0000 (23:22 +0000)]
Extended todo.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3159 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoDocumented the keyword arguments for CompoundParameterUI that I understand and which...
john.imageengine [Mon, 5 Apr 2010 23:04:37 +0000 (23:04 +0000)]
Documented the keyword arguments for CompoundParameterUI that I understand and which work. Added a todo to figure out a situation where the draggable keyword does something useful and document it. Removed the code that would shortcut the constructor based on visibility flags - I can't find a place where this is useful and I don't think the behaviour is desirable in the first place - it gives us an object for which the _layout member is unitialised, and it certainly won't work if we get round to deriving ParameterUI from UIElement.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3158 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded missing file.
john.imageengine [Mon, 5 Apr 2010 22:14:01 +0000 (22:14 +0000)]
Added missing file.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3157 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoSplitting CompoundParameterUI into its own file to work on it further.
john.imageengine [Mon, 5 Apr 2010 21:53:47 +0000 (21:53 +0000)]
Splitting CompoundParameterUI into its own file to work on it further.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3156 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding windowing filter for SH.
lucio.imageengine [Mon, 5 Apr 2010 21:52:33 +0000 (21:52 +0000)]
Adding windowing filter for SH.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3155 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdding rotatedKernel function for fast sh kernel rotations.
lucio.imageengine [Mon, 5 Apr 2010 19:57:56 +0000 (19:57 +0000)]
Adding rotatedKernel function for fast sh kernel rotations.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3154 07b78fde-9e1a-0410-98de-79dcf2039bee

8 years agoAdded a todo.
john.imageengine [Mon, 5 Apr 2010 19:49:12 +0000 (19:49 +0000)]
Added a todo.

git-svn-id: http://cortex-vfx.googlecode.com/svn/trunk@3153 07b78fde-9e1a-0410-98de-79dcf2039bee