📄 node.java
字号:
/* Ogre4J
Copyright (C) 2002 macross
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.ogre4j;
import org.ogre4j.math.Quaternion;
import org.ogre4j.math.Vector3;
/**
* Node
*
* @author Ivica Aracic <ivica.aracic@bytelords.de>
*/
public interface Node {
public String getName();
public Node getParent();
public Quaternion getOrientation();
public void setOrientation(Quaternion q);
public void setOrientation(float w, float x, float y, float z);
public void resetOrientation();
public void setPosition(Vector3 pos);
public void setPosition(float x, float y, float z);
public Vector3 getPosition();
public void setScale(Vector3 scale);
public void setScale(float x, float y, float z);
public Vector3 getScale();
public void setInheritScale(boolean inherit);
public boolean getInheritScale();
public void scale(Vector3 scale);
public void scale(float x, float y, float z);
public void translate(Vector3 d);
public void moveRelative(Vector3 d);
public void translate (float x, float y, float z);
public void roll (float degrees);
public void yaw(float degrees);
public void pitch(float degrees);
public void rotate(Vector3 axis, float degrees);
public void rotate(Quaternion q);
public void addChild(Node child);
public int numChildren();
public Node getChild(int index);
public Node getChild(String name);
public Node removeChild(int index);
public Node removeChild(String name);
public void removeAllChildren();
public Quaternion getDerivedOrientation();
public Vector3 getDerivedPosition();
public Vector3 getDerivedScale();
// delegated to Matrix3
public Vector3 getLocalAxis(int axis);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -