objectsets.h File Reference

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


Go to the source code of this file.

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.

Definition at line 14 of file objectsets.h.

          : 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.

Definition at line 26 of file objectsets.h.

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

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

                classof_methods (ObjectSet, Set);
    static void setup();
    MCHAR*      name() { return set_name; }
    void        collect() { delete this; }
    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, void* arg), 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