示例#1
0
void meshRemapTool::helpStateHasChanged()
//
// Description:
//              Set up the correct information in the help window based
//              on the current state.  
//
{
	switch (fNumSelectedPoints)
	{
		case 0:
		 fCurrentHelpString = "For auto remap select source mesh and then destination mesh and Press Enter. For manual remap select 1st vertex on source mesh.";
		 break;
		case 1:
		 fCurrentHelpString = "Select 2nd vertex on source mesh.";
		 break;
		case 2:
		 fCurrentHelpString = "Select 3rd vertex on source mesh.";
		 break;
		case 3:
		 fCurrentHelpString = "Select 1st vertex on target mesh.";
		 break;
		case 4:
		 fCurrentHelpString = "Select 2nd vertex on target mesh.";
		 break;
		case 5:
		 fCurrentHelpString = "Select 3rd vertex on target mesh.";
		 break;
		default:
		 // nothing, shouldn't be here
		 break;
	 }

	setHelpString( fCurrentHelpString );
}
示例#2
0
MStatus meshReorderTool::helpStateHasChanged( MEvent &)
//
// Description:
//              Set up the correct information in the help window based
//              on the current state.  
//
{
	switch (fNumSelectedPoints)
	{
		case 0:
		 fCurrentHelpString = "Select 1st vertex on mesh";
		 break;
		case 1:
		 fCurrentHelpString = "Select 2nd vertex, connected to 1st vertex and on the same face";
		 break;
		case 2:
		 fCurrentHelpString = "Select 3rd vertex, connected to 2nd vertex and on the same face";
		 break;
		default:
		 // nothing, shouldn't be here
		 break;
	 }

	setHelpString( fCurrentHelpString );

	return MS::kSuccess;
}
示例#3
0
void meshRemapTool::helpStateHasChanged()
//
// Description:
//              Set up the correct information in the help window based
//              on the current state.  
//
{
	switch (fNumSelectedPoints)
	{
		case 0:
		 fCurrentHelpString = "Select 1st point on source mesh.";
		 break;
		case 1:
		 fCurrentHelpString = "Select 2nd point on source mesh.";
		 break;
		case 2:
		 fCurrentHelpString = "Select 3rd point on source mesh.";
		 break;
		case 3:
		 fCurrentHelpString = "Select 1st point on target mesh.";
		 break;
		case 4:
		 fCurrentHelpString = "Select 2nd point on target mesh.";
		 break;
		case 5:
		 fCurrentHelpString = "Select 3rd point on target mesh.";
		 break;
		default:
		 // nothing, shouldn't be here
		 break;
	 }

	setHelpString( fCurrentHelpString );
}
示例#4
0
Box& Box::loadSettings(QSettings &settings)
{
    setHelpString(settings.value("help").toString());
    readPtrListSettings(inputPorts(), settings, "inputs");
    readPtrListSettings(outputPorts(), settings, "outputs");
    readListSettings<BoxProperty>(this, std::mem_fun(&Box::setBoxProperties), settings, "properties");
    return *this;
}
示例#5
0
MStatus customAttrCtx::doEnterRegion(MEvent &event)
//
// Print the tool description in the help line.
//
{
    MString str(MOVEHELPSTR);
    return setHelpString(str);
}
示例#6
0
MStatus moveContext::doEnterRegion( MEvent & /*event*/ )
//
// Print the tool description in the help line.
//
{
	MString str( MOVEHELPSTR );
    return setHelpString( str );
}
示例#7
0
void customAttrCtx::toolOnSetup(MEvent &)
{
    MString str(MOVEHELPSTR);
    setHelpString(str);

	updateManipulators(this);
	MStatus status;
	id1 = MModelMessage::addCallback(MModelMessage::kActiveListModified,
									 updateManipulators, 
									 this, &status);
	if (!status) {
		cerr << "Model addCallback failed\n";
	}
}
示例#8
0
void ComponentScaleContext::toolOnSetup(MEvent &)
{
	MString str("Scale the selected components");
	setHelpString(str);

	updateManipulators(this);
	MStatus status;
	id1 = MModelMessage::addCallback(MModelMessage::kActiveListModified,
									 updateManipulators, 
									 this, &status);
	if (!status) {
		MGlobal::displayError("Model addCallback failed");
	}
}
示例#9
0
void RotateManipContext::toolOnSetup(MEvent &)
{
	MString str("Rotate the object using the rotation handles");
	setHelpString(str);

	updateManipulators(this);
	MStatus status;
	id1 = MModelMessage::addCallback(MModelMessage::kActiveListModified,
									 updateManipulators, 
									 this, &status);
	if (!status) {
		MGlobal::displayError("Model addCallback failed");
	}
}
void SelectRingContext2::toolOnSetup( MEvent &event )
{
	// Get the GUI's click box size
	MGlobal::executeCommand( "selectPref -query -clickBoxSize", clickBoxSize );
	
	setHelpString( helpTxt );
	setCursor( MCursor::editCursor );

	// Record current selection mode and masks
	prevSelMode = MGlobal::selectionMode();
	if( prevSelMode == MGlobal::kSelectComponentMode )
		prevCompMask = MGlobal::componentSelectionMask();	
	else
		prevObjMask = MGlobal::objectSelectionMask();	
}
void HairToolContext::toolOnSetup(MEvent& event){
	// set the help text in the maya help boxs
	setHelpString("Overcoat Hair Tool" );
	intersectionFound = false;
	if(HairToolContext::initalized == false){
		red = 0.0f;
		green = 0.0f;
		blue = 0.0f;
		thick = 1.0f;
		brush = 1;
		transparency = 0.0f;
		spacing = 1.0f;
		HairToolContext::initalized = true;
	}


}
示例#12
0
MStatus marqueeContext::doEnterRegion( MEvent & )
{
	return setHelpString( helpString );
}
示例#13
0
void marqueeContext::toolOnSetup ( MEvent & )
{
	setHelpString( helpString );
}
示例#14
0
Port& Port::loadSettings(QSettings& settings)
{
    setHelpString(settings.value("help").toString());
    hints().loadSettings(settings);
    return *this;
}
示例#15
0
void moveContext::toolOnSetup( MEvent & )
{
	MString str( MOVEHELPSTR );
    setHelpString( str );
}
示例#16
0
void lassoTool::toolOnSetup ( MEvent & )
{
	setHelpString( helpString );
}