maxscript/maxwrapper/objectsets.h File Reference
 
 
 
maxscript/maxwrapper/objectsets.h File Reference

This reference page is linked to from the following overview topics: SDK Change Details.


#include "../kernel/value.h"
#include "../foundation/collection.h"
#include "../foundation/streams.h"
#include "../macros/define_implementations.h"

Classes

class   CurSelObjectSet

Defines

#define  is_objectset(v)   ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(ObjectSet))

Functions

  visible_class (Set) class Set
  visible_class_s (ObjectSet, Set) class ObjectSet

Variables

ObjectSet  all_objects
ObjectSet  all_geometry
ObjectSet  all_lights
ObjectSet  all_cameras
ObjectSet  all_helpers
ObjectSet  all_shapes
ObjectSet  all_systems
ObjectSet  all_spacewarps
CurSelObjectSet  current_selection

Define Documentation

#define is_objectset (   v )    ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(ObjectSet))

Function Documentation

visible_class ( Set  )

Define an equal operator (i.e. '==') for maxscript visible values.

Define a NOT equal operator (i.e. '!=') for maxscript visible values.

          : public Value, public Collection
{
public:
                        classof_methods (Set, Value);
        BOOL    _is_collection() { return 1; }

#include "../macros/define_implementations.h"
        def_generic  (coerce,   "coerce"); 
};
visible_class_s ( ObjectSet  ,
Set   
)

Define an equal operator (i.e. '==') for maxscript visible values.

Define a NOT equal operator (i.e. '!=') for maxscript visible values.

                : public Set
{
protected:
                                ObjectSet() { }
public:
        MSTR            set_name;
        BOOL            (*selector)(INode* node, int level, const void* arg);   // set selector function
        const void*             selector_arg;                                                                   // selector fn argument

                                ObjectSet(const MCHAR* name, SClass_ID class_id);
                                ObjectSet(const MCHAR* init_name, BOOL (*sel_fn)(INode*, int, const void*), const void* init_arg = NULL);
        void            init(const MCHAR* name);

                                classof_methods (ObjectSet, Set);
        static void     setup();
        const MCHAR*            name() { return set_name; }
        void            collect();
        void            sprin1(CharStream* s) { s->printf(_M("$%s"), set_name); }
        void            export_to_scripter();
#       define          is_objectset(v) ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(ObjectSet))

        ScripterExport Value* map(node_map& m);
        ScripterExport Value* map_path(PathName* path, node_map& m);
        ScripterExport Value* find_first(BOOL (*test_fn)(INode* node, int level, const void* arg), const void* test_arg);
        ScripterExport Value* get_path(PathName* path);

#include "../macros/define_implementations.h"
        def_generic  (get,              "get");   // indexed get (no put or append)
        def_property ( count );
        def_property ( center );
        def_property ( min );
        def_property ( max );
};

Variable Documentation