Class IManipulatorMgr

3DS Max Plug-In SDK

Class IManipulatorMgr

See Also: Class FPStaticInterface

class IManipulatorMgr : public FPStaticInterface

Description:

This class is available in release 4.0 and later only.

This is the abstract interface class for Manipulator Manager Objects

The Interface ID of this class is MANIP_MGR_INTERFACE.

Methods:

public:

Prototype:

virtual Mesh* MakeSphere(Point3& pos, float radius, int segments)=0;

Remarks:

This method allows you to create a spherical mesh gizmo.

Parameters:

Point3& pos

The position of the sphere.

float radius

The radius of the sphere

int segments

The number of segments in the sphere.

Return Value:

A pointer to the resulting mesh.

Prototype:

virtual Mesh* MakeTorus(Point3& pos, float radius, float radius2, int segs, int sides)=0;

Remarks:

This method allows you to create a torus mesh gizmo.

Parameters:

Point3& pos

The position of the torus.

float radius

The radius of the torus.

float radius2

The second radius of the torus.

int segs

The number of segments in the torus.

int sides

The number of sides of the torus.

Return Value:

A pointer to the resulting mesh.

Prototype:

virtual Mesh* MakeBox(Point3& pos, float l, float w, float h, int lsegs, int wsegs, int hsegs)=0;

Remarks:

This method allows you to create a box mesh gizmo.

Parameters:

Point3& pos

The position of the box.

float l

The length of the box.

float w

The width of the box.

float h

The height of the box.

int lsegs

The length segments of the box.

int wsegs

The width segments of the box.

int hsegs

The height segments of the box.

Return Value:

A pointer to the resulting mesh.

Prototype:

virtual Plane* MakePlane()=0;

Remarks:

This method creates a default plane gizmo.

Prototype:

virtual Plane* MakePlane(Point3& p1, Point3& p2, Point3& p3)=0;

Remarks:

This method creates a plane gizmo.

Parameters:

Point3& p1

The first point of the plane.

Point3& p2

The second point of the plane.

Point3& p3

The third point of the plane.

Prototype:

virtual Plane* MakePlane(Point3& normal, Point3& point)=0;

Remarks:

This method creates a plane gizmo.

Parameters:

Point3& normal

The normal of the plane

Point3& point

The center point in space of the plane.

Prototype:

virtual Plane* GetmsXYPlane()=0;

Remarks:

This method returns the XY plane.

Prototype:

virtual Plane* GetmsXZPlane()=0;

Remarks:

This method returns the XZ plane.

Prototype:

virtual Plane* GetmsYZPlane()=0;

Remarks:

This method returns the YZ plane.

Prototype:

virtual GizmoShape* MakeGizmoShape()=0;

Remarks:

This method will create a default gizmo shape.

Prototype:

virtual GizmoShape* MakeCircle(Point3& center, float radius, int segments)=0;

Remarks:

This method will make a circular gizmo shape.

Parameters:

Point3& center

The center of the circle.

float radius

The radius of the circle.

int segments

The number of segments of the circle.

Return Value:

A pointer to the resulting gizmo shape.