|
################################################################## Appearance3DChooser v1.1 Copyright (C) 2009 Frederic Roudaut This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. ################################################################### |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
com.appearance3Dchooser.TexturePane
public class TexturePane
Panel creation for the Textures.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
---|
javax.swing.JTabbedPane.AccessibleJTabbedPane, javax.swing.JTabbedPane.ModelListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected float[] |
blendColor
|
protected com.colorpicker.swing.ColorPicker |
blendColorPicker
|
static int |
COMBINE_FUNCTION_ONE_MINUS_SRC_ALPHA
|
static int |
COMBINE_FUNCTION_ONE_MINUS_SRC_COLOR
|
static int |
COMBINE_FUNCTION_SRC_ALPHA
|
static int |
COMBINE_FUNCTION_SRC_COLOR
|
static int |
COMBINE_MODE_ADD
|
static int |
COMBINE_MODE_ADD_SIGNED
|
static int |
COMBINE_MODE_DOT3
|
static int |
COMBINE_MODE_INTERPOLATE
|
static int |
COMBINE_MODE_MODULATE
|
static int |
COMBINE_MODE_REPLACE
|
static int |
COMBINE_MODE_SUBTRACT
|
static int |
COMBINE_SOURCE_CONSTANT_COLOR
|
static int |
COMBINE_SOURCE_OBJECT_COLOR
|
static int |
COMBINE_SOURCE_PREVIOUS_TEXTURE_UNIT_STATE
|
static int |
COMBINE_SOURCE_TEXTURE_COLOR
|
protected int |
combineAlphaFunctionC0
|
protected int |
combineAlphaFunctionC1
|
protected int |
combineAlphaFunctionC2
|
protected int |
combineAlphaMode
|
protected int |
combineAlphaScale
|
protected int |
combineAlphaSourceC0
|
protected int |
combineAlphaSourceC1
|
protected int |
combineAlphaSourceC2
|
protected int |
combineRGBFunctionC0
|
protected int |
combineRGBFunctionC1
|
protected int |
combineRGBFunctionC2
|
protected int |
combineRGBMode
|
protected int |
combineRGBScale
|
protected int |
combineRGBSourceC0
|
protected int |
combineRGBSourceC1
|
protected int |
combineRGBSourceC2
|
protected java.net.URL |
DefaultTexture
|
protected javax.swing.JFileChooser |
fileChooser
|
protected javax.swing.JButton |
fileChooserButton
|
protected java.awt.Image |
image
|
protected javax.swing.ImageIcon |
imageIcon
|
protected javax.swing.JComboBox |
listCombineAlphaFunctionC0
|
protected javax.swing.JComboBox |
listCombineAlphaFunctionC1
|
protected javax.swing.JComboBox |
listCombineAlphaFunctionC2
|
protected javax.swing.JComboBox |
listCombineAlphaMode
|
protected javax.swing.JComboBox |
listCombineAlphaScale
|
protected javax.swing.JComboBox |
listCombineAlphaSourceC0
|
protected javax.swing.JComboBox |
listCombineAlphaSourceC1
|
protected javax.swing.JComboBox |
listCombineAlphaSourceC2
|
protected javax.swing.JComboBox |
listCombineRGBFunctionC0
|
protected javax.swing.JComboBox |
listCombineRGBFunctionC1
|
protected javax.swing.JComboBox |
listCombineRGBFunctionC2
|
protected javax.swing.JComboBox |
listCombineRGBMode
|
protected javax.swing.JComboBox |
listCombineRGBScale
|
protected javax.swing.JComboBox |
listCombineRGBSourceC0
|
protected javax.swing.JComboBox |
listCombineRGBSourceC1
|
protected javax.swing.JComboBox |
listCombineRGBSourceC2
|
protected javax.swing.JComboBox |
listPerspectiveCorrectionMode
|
protected javax.swing.JComboBox |
listTextureMode
|
protected javax.swing.JButton |
OKButton
|
static int |
PERSPECTIVE_CORRECTION_MODE_FASTEST
|
static int |
PERSPECTIVE_CORRECTION_MODE_NICEST
|
protected int |
perspectiveCorrectionMode
|
private static long |
serialVersionUID
|
protected javax.swing.JRadioButton |
setTextureButton
|
static java.lang.String |
TEXTURE_BLEND
|
static java.lang.String |
TEXTURE_COMBINE_ALPHA_FUNCTION
|
static java.lang.String |
TEXTURE_COMBINE_ALPHA_MODE
|
static java.lang.String |
TEXTURE_COMBINE_ALPHA_SCALE
|
static java.lang.String |
TEXTURE_COMBINE_ALPHA_SOURCE
|
static java.lang.String |
TEXTURE_COMBINE_RGB_FUNCTION
|
static java.lang.String |
TEXTURE_COMBINE_RGB_MODE
|
static java.lang.String |
TEXTURE_COMBINE_RGB_SCALE
|
static java.lang.String |
TEXTURE_COMBINE_RGB_SOURCE
|
static java.lang.String |
TEXTURE_FILE
|
static java.lang.String |
TEXTURE_MODE
|
static int |
TEXTURE_MODE_BLEND
|
static int |
TEXTURE_MODE_COMBINE
|
static int |
TEXTURE_MODE_DECAL
|
static int |
TEXTURE_MODE_MODULATE
|
static int |
TEXTURE_MODE_REPLACE
|
static java.lang.String |
TEXTURE_PERPSPECTIVE_CORRECTION_MODE
|
static java.lang.String |
TEXTURE_TRANSFORM
|
static java.lang.String |
TEXTURE_USE
|
protected javax.swing.JRadioButton |
textureButtonTransformReset
|
protected javax.swing.JRadioButton |
textureButtonTransformUniformScale
|
protected int |
textureMode
|
protected java.net.URL |
textureName
|
protected javax.swing.JTextField |
textureNameJText
|
protected javax.swing.JSpinner |
textureSpinnerTransformRotZ
|
protected javax.swing.JSpinner |
textureSpinnerTransformScaleX
|
protected javax.swing.JSpinner |
textureSpinnerTransformScaleY
|
protected javax.swing.JSpinner |
textureSpinnerTransformTranslatX
|
protected javax.swing.JSpinner |
textureSpinnerTransformTranslatY
|
protected javax.swing.JTabbedPane |
textureTabbedPane
|
protected javax.media.j3d.Transform3D |
textureTransform
|
protected boolean |
textureTransformUniformScale
|
protected boolean |
useTexture
|
Fields inherited from class javax.swing.JTabbedPane |
---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TexturePane(java.net.URL DefaultTextureName)
Constructor for creating a Texture panel |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Called when an action is performed : the OK button is clicked, the Texture is set or changed, the Texture Mode or the Texture Perspective correction Mode is modified ... |
static int |
convertExternPerspectiveCorrectionMode(int m)
Convert a Texture Perspective Correction Mode om Internal representation to TextureAttributes representation. |
static int |
convertExternTextureCombineFunction(int m)
Convert a Texture Combine RGB/Alpha Color Function om Internal representation to TextureAttributes representation. |
static int |
convertExternTextureCombineMode(int m)
Convert a Texture Combine RGB/Alpha Mode om Internal representation to TextureAttributes representation. |
static int |
convertExternTextureCombineScale(int m)
Convert a Texture Combine Scale Factor from Internal representation to TextureAttributes representation. |
static int |
convertExternTextureCombineSource(int m)
Convert a Texture Combine RGB/Alpha Color Source om Internal representation to TextureAttributes representation. |
static int |
convertExternTextureMode(int m)
Convert a Texture Mode om Internal representation to TextureAttributes representation. |
static int |
convertInternPerspectiveCorrectionMode(int m)
Convert a Texture Perspective Correction Mode om TextureAttributes representation to Internal representation. |
static int |
convertInternTextureCombineFunction(int m)
Convert a Texture Combine RGB/Alpha Color Function om TextureAttributes representation to Internal representation. |
static int |
convertInternTextureCombineMode(int m)
Convert a Texture Combine RGB/Alpha Mode om TextureAttributes representation to Internal representation. |
static int |
convertInternTextureCombineScale(int m)
Convert a Texture Combine Scale Factor om TextureAttributes representation to Internal representation. |
static int |
convertInternTextureCombineSource(int m)
Convert a Texture Combine RGB/Alpha Color Source om TextureAttributes representation to Internal representation. |
static int |
convertInternTextureMode(int m)
Convert a Texture Mode om TextureAttributes representation to Internal representation. |
javax.swing.JPanel |
createImagePanel()
Panel creation for the texture image. |
float[] |
getTextureBlendColor()
Get the current Texture blend color. |
int[] |
getTextureCombineAlphaFunction()
Get the current Texture Combine Alpha Function. |
int |
getTextureCombineAlphaMode()
Get the current Texture Combine Alpha Mode. |
int |
getTextureCombineAlphaScale()
Get the current Texture Combine Alpha Scale Factor. |
int[] |
getTextureCombineAlphaSource()
Get the current Texture Combine Alpha Source. |
int[] |
getTextureCombineRGBFunction()
Get the current Texture Combine RGB Function. |
int |
getTextureCombineRGBMode()
Get the current Texture Combine RGB Mode. |
int |
getTextureCombineRGBScale()
Get the current Texture Combine RGB Scale Factor. |
int[] |
getTextureCombineRGBSource()
Get the current Texture Combine RGB Source. |
java.net.URL |
getTextureFile()
Give the current Texture file. |
int |
getTextureMode()
Get the current Texture Mode. |
int |
getTexturePerspectiveCorrectionMode()
Get the current Texture Perspective Correction Mode. |
javax.media.j3d.Transform3D |
getTextureTransform()
Get the current Texture transformation. |
float |
getTextureTransformRotZ()
Get the current Texture rotation transformation on the Z axis. |
float |
getTextureTransformScaleX()
Get the current Texture scale transformation on the X axis. |
float |
getTextureTransformScaleY()
Get the current Texture scale transformation on the Y axis. |
float |
getTextureTransformTranslatX()
Get the current Texture translation transformation on the X axis. |
float |
getTextureTransformTranslatY()
Get the current Texture translation transformation on the Y axis. |
boolean |
isTextureSet()
Check is the Texture is used. |
private void |
makeBasicTexturePane()
Basic parameters Panel for the Texture : use, don't use, Texture tranformation, Texture Mode, Texture Perspective Correction Mode. |
private void |
makeBlendColorPane()
Blend Color Panel for the Texture. |
private void |
makeCombineModePane()
COMBINE parameters Panel for the Texture. |
void |
setDefaultTextureFile(java.net.URL f)
Set the current default Texture file. |
void |
setTextureBlendColor(float[] c)
Set the Texture blend color. |
void |
setTextureCombineAlphaFunction(int[] c)
Set the Texture Combine Alpha Function. |
void |
setTextureCombineAlphaMode(int m)
Set the Texture Combine Alpha Mode. |
void |
setTextureCombineAlphaScale(int m)
Set the Texture Combine Alpha Scale Factor. |
void |
setTextureCombineAlphaSource(int[] c)
Set the Texture Combine Alpha Source. |
void |
setTextureCombineRGBFunction(int[] c)
Set the Texture Combine RGB Function. |
void |
setTextureCombineRGBMode(int m)
Set the Texture Combine RGB Mode. |
void |
setTextureCombineRGBScale(int m)
Set the Texture Combine RGB Scale Factor. |
void |
setTextureCombineRGBSource(int[] c)
Set the Texture Combine RGB Source. |
void |
setTextureFile(java.net.URL f)
Set the current Texture file. |
void |
setTextureMode(int m)
Set the Texture Mode. |
void |
setTexturePerspectiveCorrectionMode(int m)
Set the Texture Perspective Correction Mode. |
void |
setTextureTransform(javax.media.j3d.Transform3D t)
Set the Texture transformation. |
void |
setTextureTransformRotZ(float v)
Set the Texture rotation transformation on the Z axis. |
void |
setTextureTransformScaleX(float v)
Set the Texture scale transformation on the X axis. |
void |
setTextureTransformScaleY(float v)
Set the Texture scale transformation on the Y axis. |
void |
setTextureTransformTranslatX(float v)
Set the Texture translation transformation on the X axis. |
void |
setTextureTransformTranslatY(float v)
Set the Texture translation transformation on the Y axis. |
void |
setTextureUse(boolean b)
use or not the current Texture. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
Called when a modification is done on the Texture transformation. |
void |
updateImage(java.net.URL texture)
Update the texture image shown and the Texture itself. |
private void |
updateTextureBlendColor(float[] b)
Update the Texture blend color. |
Methods inherited from class javax.swing.JTabbedPane |
---|
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static final java.lang.String TEXTURE_FILE
public static final java.lang.String TEXTURE_USE
public static final java.lang.String TEXTURE_TRANSFORM
public static final java.lang.String TEXTURE_PERPSPECTIVE_CORRECTION_MODE
public static final java.lang.String TEXTURE_MODE
public static final java.lang.String TEXTURE_BLEND
public static final java.lang.String TEXTURE_COMBINE_RGB_MODE
public static final java.lang.String TEXTURE_COMBINE_RGB_SOURCE
public static final java.lang.String TEXTURE_COMBINE_RGB_FUNCTION
public static final java.lang.String TEXTURE_COMBINE_RGB_SCALE
public static final java.lang.String TEXTURE_COMBINE_ALPHA_MODE
public static final java.lang.String TEXTURE_COMBINE_ALPHA_SOURCE
public static final java.lang.String TEXTURE_COMBINE_ALPHA_FUNCTION
public static final java.lang.String TEXTURE_COMBINE_ALPHA_SCALE
public static final int TEXTURE_MODE_MODULATE
public static final int TEXTURE_MODE_DECAL
public static final int TEXTURE_MODE_BLEND
public static final int TEXTURE_MODE_REPLACE
public static final int TEXTURE_MODE_COMBINE
public static final int COMBINE_MODE_REPLACE
public static final int COMBINE_MODE_MODULATE
public static final int COMBINE_MODE_ADD
public static final int COMBINE_MODE_ADD_SIGNED
public static final int COMBINE_MODE_SUBTRACT
public static final int COMBINE_MODE_INTERPOLATE
public static final int COMBINE_MODE_DOT3
public static final int COMBINE_FUNCTION_SRC_ALPHA
public static final int COMBINE_FUNCTION_ONE_MINUS_SRC_ALPHA
public static final int COMBINE_FUNCTION_SRC_COLOR
public static final int COMBINE_FUNCTION_ONE_MINUS_SRC_COLOR
public static final int COMBINE_SOURCE_OBJECT_COLOR
public static final int COMBINE_SOURCE_TEXTURE_COLOR
public static final int COMBINE_SOURCE_CONSTANT_COLOR
public static final int COMBINE_SOURCE_PREVIOUS_TEXTURE_UNIT_STATE
public static final int PERSPECTIVE_CORRECTION_MODE_FASTEST
public static final int PERSPECTIVE_CORRECTION_MODE_NICEST
protected javax.swing.JTextField textureNameJText
protected javax.swing.JButton fileChooserButton
protected javax.swing.JButton OKButton
protected javax.swing.JFileChooser fileChooser
protected javax.swing.JRadioButton setTextureButton
protected javax.swing.ImageIcon imageIcon
protected java.net.URL textureName
protected java.net.URL DefaultTexture
protected boolean useTexture
protected java.awt.Image image
protected int textureMode
protected int perspectiveCorrectionMode
protected int combineRGBMode
protected int combineAlphaMode
protected int combineRGBFunctionC0
protected int combineRGBFunctionC1
protected int combineRGBFunctionC2
protected int combineAlphaFunctionC0
protected int combineAlphaFunctionC1
protected int combineAlphaFunctionC2
protected int combineRGBSourceC0
protected int combineRGBSourceC1
protected int combineRGBSourceC2
protected int combineAlphaSourceC0
protected int combineAlphaSourceC1
protected int combineAlphaSourceC2
protected int combineRGBScale
protected int combineAlphaScale
protected javax.media.j3d.Transform3D textureTransform
protected boolean textureTransformUniformScale
protected float[] blendColor
protected javax.swing.JComboBox listTextureMode
protected javax.swing.JComboBox listCombineRGBMode
protected javax.swing.JComboBox listCombineAlphaMode
protected javax.swing.JComboBox listCombineRGBFunctionC0
protected javax.swing.JComboBox listCombineRGBFunctionC1
protected javax.swing.JComboBox listCombineRGBFunctionC2
protected javax.swing.JComboBox listCombineAlphaFunctionC0
protected javax.swing.JComboBox listCombineAlphaFunctionC1
protected javax.swing.JComboBox listCombineAlphaFunctionC2
protected javax.swing.JComboBox listCombineRGBSourceC0
protected javax.swing.JComboBox listCombineRGBSourceC1
protected javax.swing.JComboBox listCombineRGBSourceC2
protected javax.swing.JComboBox listCombineAlphaSourceC0
protected javax.swing.JComboBox listCombineAlphaSourceC1
protected javax.swing.JComboBox listCombineAlphaSourceC2
protected javax.swing.JComboBox listPerspectiveCorrectionMode
protected javax.swing.JComboBox listCombineRGBScale
protected javax.swing.JComboBox listCombineAlphaScale
protected javax.swing.JSpinner textureSpinnerTransformRotZ
protected javax.swing.JSpinner textureSpinnerTransformScaleX
protected javax.swing.JSpinner textureSpinnerTransformScaleY
protected javax.swing.JSpinner textureSpinnerTransformTranslatX
protected javax.swing.JSpinner textureSpinnerTransformTranslatY
protected javax.swing.JRadioButton textureButtonTransformReset
protected javax.swing.JRadioButton textureButtonTransformUniformScale
protected javax.swing.JTabbedPane textureTabbedPane
protected com.colorpicker.swing.ColorPicker blendColorPicker
Constructor Detail |
---|
public TexturePane(java.net.URL DefaultTextureName)
DefaultTextureName
- Default Texture URL.Method Detail |
---|
private void makeBasicTexturePane()
private void makeCombineModePane()
private void makeBlendColorPane()
public javax.swing.JPanel createImagePanel()
public void updateImage(java.net.URL texture)
texture
- the new Texture File.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
e
- the related event.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- the related action.public java.net.URL getTextureFile()
public void setTextureFile(java.net.URL f)
f
- the Texture file to set.public void setDefaultTextureFile(java.net.URL f)
f
- the Texture default file to set.public boolean isTextureSet()
public void setTextureUse(boolean b)
b
- true if the currect Texture has to be used, false otherwise.public javax.media.j3d.Transform3D getTextureTransform()
public void setTextureTransform(javax.media.j3d.Transform3D t)
t
- the Texture transformation to use.public float getTextureTransformScaleX()
public void setTextureTransformScaleX(float v)
v
- the Texture scale transformation on the X axis to use.public float getTextureTransformScaleY()
public void setTextureTransformScaleY(float v)
v
- the Texture scale transformation on the Y axis to use.public float getTextureTransformTranslatX()
public void setTextureTransformTranslatX(float v)
v
- the Texture translation transformation on the X axis to use.public float getTextureTransformTranslatY()
public void setTextureTransformTranslatY(float v)
v
- the Texture translation transformation on the Y axis to use.public float getTextureTransformRotZ()
public void setTextureTransformRotZ(float v)
v
- the Texture rotation transformation on the Z axis to use.public int getTextureMode()
public void setTextureMode(int m)
m
- the Texture Mode to use.public int getTexturePerspectiveCorrectionMode()
public void setTexturePerspectiveCorrectionMode(int m)
m
- the Texture Perspective Correction Mode to use.public float[] getTextureBlendColor()
public void setTextureBlendColor(float[] c)
c
- the Texture blend color to use.public int getTextureCombineRGBMode()
public void setTextureCombineRGBMode(int m)
m
- the Texture Combine RGB Mode to use.public int[] getTextureCombineRGBSource()
public void setTextureCombineRGBSource(int[] c)
c
- the Texture Combine RGB Source Mode (C0,C1,C2) to use.public int[] getTextureCombineRGBFunction()
public void setTextureCombineRGBFunction(int[] c)
c
- the Texture Combine RGB Function Mode (C0,C1,C2) to use.public int getTextureCombineRGBScale()
public void setTextureCombineRGBScale(int m)
m
- the Texture Combine RGB Scale Factor to use.public int getTextureCombineAlphaMode()
public void setTextureCombineAlphaMode(int m)
m
- the Texture Combine Alpha Mode to use.public int[] getTextureCombineAlphaSource()
public void setTextureCombineAlphaSource(int[] c)
c
- the Texture Combine Alpha Source Mode (C0,C1,C2) to use.public int[] getTextureCombineAlphaFunction()
public void setTextureCombineAlphaFunction(int[] c)
c
- the Texture Combine Alpha Function Mode (C0,C1,C2) to use.public int getTextureCombineAlphaScale()
public void setTextureCombineAlphaScale(int m)
m
- the Texture Combine Alpha Scale Factor to use.private void updateTextureBlendColor(float[] b)
b
- the (R,G,B,A) value of the new Texture blend color to use.public static int convertInternPerspectiveCorrectionMode(int m)
m
- a Texture Perspective Correction Mode in TextureAttributes representation.
public static int convertExternPerspectiveCorrectionMode(int m)
m
- a Texture Perspective Correction Mode in Internal representation.
public static int convertInternTextureMode(int m)
m
- a Texture Mode in TextureAttributes representation.
public static int convertExternTextureMode(int m)
m
- a Texture Mode in Internal representation.
public static int convertInternTextureCombineMode(int m)
m
- a Texture Combine RGB/Alpha Mode in TextureAttributes representation.
public static int convertExternTextureCombineMode(int m)
m
- a Texture Combine RGB/Alpha Mode in Internal representation.
public static int convertInternTextureCombineSource(int m)
m
- a Texture Combine RGB/Alpha Color Source in TextureAttributes representation.
public static int convertExternTextureCombineSource(int m)
m
- a Texture Combine RGB/Alpha Color Source in Internal representation.
public static int convertInternTextureCombineFunction(int m)
m
- a Texture Combine RGB/Alpha Color Function in TextureAttributes representation.
public static int convertExternTextureCombineFunction(int m)
m
- a Texture Combine RGB/Alpha Color Function in Internal representation.
public static int convertInternTextureCombineScale(int m)
m
- a Texture Combine Scale Factor in TextureAttributes representation.
public static int convertExternTextureCombineScale(int m)
m
- a Texture Combine Scale Factor in Internal representation.
|
################################################################## Appearance3DChooser v1.1 Copyright (C) 2009 Frederic Roudaut This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. ################################################################### |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |