
**Inheritance:**
java.lang.Object
```
public class StencilState
```

Stencil states per face.
## Methods

| Method | Description |
| --- | --- |
| [equals(Object obj)](#equals-java.lang.Object-) | Returns a value indicating whether this instance is equal to a specified object. |
| [getClass()](#getClass--) |  |
| [getCompare()](#getCompare--) | Gets the compare function used in stencil test |
| [getDepthFailAction()](#getDepthFailAction--) | Gets the stencil action when stencil test pass but depth test fails. |
| [getFailAction()](#getFailAction--) | Gets the stencil action when stencil test fails. |
| [getPassAction()](#getPassAction--) | Gets the stencil action when both stencil test and depth test passes. |
| [hashCode()](#hashCode--) | Returns the hash code for this instance. |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setCompare(CompareFunction value)](#setCompare-com.aspose.threed.CompareFunction-) | Sets the compare function used in stencil test |
| [setDepthFailAction(StencilAction value)](#setDepthFailAction-com.aspose.threed.StencilAction-) | Sets the stencil action when stencil test pass but depth test fails. |
| [setFailAction(StencilAction value)](#setFailAction-com.aspose.threed.StencilAction-) | Sets the stencil action when stencil test fails. |
| [setPassAction(StencilAction value)](#setPassAction-com.aspose.threed.StencilAction-) | Sets the stencil action when both stencil test and depth test passes. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### equals(Object obj) {#equals-java.lang.Object-}
```
public boolean equals(Object obj)
```


Returns a value indicating whether this instance is equal to a specified object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getCompare() {#getCompare--}
```
public CompareFunction getCompare()
```


Gets the compare function used in stencil test

**Returns:**
[CompareFunction](../../com.aspose.threed/comparefunction) - the compare function used in stencil test
### getDepthFailAction() {#getDepthFailAction--}
```
public StencilAction getDepthFailAction()
```


Gets the stencil action when stencil test pass but depth test fails.

**Returns:**
[StencilAction](../../com.aspose.threed/stencilaction) - the stencil action when stencil test pass but depth test fails.
### getFailAction() {#getFailAction--}
```
public StencilAction getFailAction()
```


Gets the stencil action when stencil test fails.

**Returns:**
[StencilAction](../../com.aspose.threed/stencilaction) - the stencil action when stencil test fails.
### getPassAction() {#getPassAction--}
```
public StencilAction getPassAction()
```


Gets the stencil action when both stencil test and depth test passes.

**Returns:**
[StencilAction](../../com.aspose.threed/stencilaction) - the stencil action when both stencil test and depth test passes.
### hashCode() {#hashCode--}
```
public int hashCode()
```


Returns the hash code for this instance.

**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setCompare(CompareFunction value) {#setCompare-com.aspose.threed.CompareFunction-}
```
public void setCompare(CompareFunction value)
```


Sets the compare function used in stencil test

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CompareFunction](../../com.aspose.threed/comparefunction) | New value |

### setDepthFailAction(StencilAction value) {#setDepthFailAction-com.aspose.threed.StencilAction-}
```
public void setDepthFailAction(StencilAction value)
```


Sets the stencil action when stencil test pass but depth test fails.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [StencilAction](../../com.aspose.threed/stencilaction) | New value |

### setFailAction(StencilAction value) {#setFailAction-com.aspose.threed.StencilAction-}
```
public void setFailAction(StencilAction value)
```


Sets the stencil action when stencil test fails.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [StencilAction](../../com.aspose.threed/stencilaction) | New value |

### setPassAction(StencilAction value) {#setPassAction-com.aspose.threed.StencilAction-}
```
public void setPassAction(StencilAction value)
```


Sets the stencil action when both stencil test and depth test passes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [StencilAction](../../com.aspose.threed/stencilaction) | New value |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

