Package com.j3d.engine.scene.copy
Interface CanCopy
public interface CanCopy
Interface for objects that can be copied.
This allows for a standardised way to duplicate objects, potentially
with modifications specified by
CopyProperties.- Author:
- Lehlogonolo Poole
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(CopyProperties props) Copies the properties of this object based on the providedCopyProperties.
-
Method Details
-
copy
Copies the properties of this object based on the providedCopyProperties. The implementation should handle how the copying is performed, potentially creating a new instance or modifying an existing one.- Parameters:
props- The properties defining how the copy operation should be performed.- Throws:
InvalidCopyException- If the copy operation cannot be completed due to invalid properties or state.
-