@zeainc/zea-ux
Version:
44 lines • 1.74 kB
TypeScript
import { Xfo, Operator, NumberOperatorInput, XfoOperatorOutput, TreeItem, NumberParameter, XfoParameter } from '@zeainc/zea-engine';
/**
* An operator for aiming items at targets.
*
* @extends {Operator}
*/
declare class SelectionGroupXfoOperator extends Operator {
currGroupXfo: Xfo;
xfoModeInput: NumberOperatorInput;
xfoOutput: XfoOperatorOutput;
/**
* Creates an instance of SelectionGroupXfoOperator.
*
* @param initialXfoModeParam - Initial XFO Mode, check `INITIAL_XFO_MODES` in `KinematicGroup` documentation
* @param globalXfoParam - The GlobalXfo param found on the KinematicKinematicGroup.
*/
constructor(initialXfoModeParam: NumberParameter, globalXfoParam: XfoParameter);
/**
* Updates operator inputs(`OperatorInput`) of current `Operator` using the specified `TreeItem`.
*
* @param item - The tree item being added
*/
addItem(item: TreeItem): void;
/**
* Finds and removes the `OperatorInput` of the specified `TreeItem` from current`Operator`.
*
* @param item - The Bind Xfo calculated from the initial Transforms of the KinematicGroup Members.
*/
removeItem(item: TreeItem): void;
/**
* Move the group. When the selection group is manipulated, this method is called.
* Here we propagate the delta to each of the selection members.
*
* @param xfo - The new value being set to the Groups GlobalXfo param.
*/
backPropagateValue(xfo: Xfo): void;
/**
* Calculates a new Xfo for the group based on the members.
*/
evaluate(): void;
}
export default SelectionGroupXfoOperator;
export { SelectionGroupXfoOperator };
//# sourceMappingURL=SelectionGroupXfoOperator.d.ts.map