EsfEditReason Class Reference

Set of scene changes that should trigger edits to the exec network. More...

Public Member Functions

bool operator< (const EsfEditReason &other) const
 Enables consistent sorting of EsfEditReasons. More...
 
constexpr EsfEditReason ()=default
 Equivalent to EsfEditReason::None. More...
 
ESF_API std::string GetDescription () const
 Get a string describing the contents of this edit reason. More...
 
Bitwise operations
constexpr operator bool () const
 Return true if this object contains any edit reasons. More...
 
constexpr bool operator== (EsfEditReason other) const
 
constexpr bool operator!= (EsfEditReason other) const
 
constexpr EsfEditReasonoperator&= (EsfEditReason other)
 
constexpr EsfEditReasonoperator|= (EsfEditReason other)
 
constexpr EsfEditReason operator & (EsfEditReason other) const
 
constexpr EsfEditReason operator| (EsfEditReason other) const
 
constexpr bool Contains (EsfEditReason other) const
 Return true if other's reasons are entirely contained by this set of reasons. More...
 

Static Public Attributes

Supported edit reasons
static const EsfEditReason None
 
static const EsfEditReason ResyncedObject
 Something about an object has changed. More...
 
static const EsfEditReason ChangedPropertyList
 The list of properties on a prim has changed. More...
 
static const EsfEditReason ChangedConnectionPaths
 The list of connection paths on an attribute has changed. More...
 
static const EsfEditReason ChangedIncomingConnections
 The set of connections that target an object has changed. More...
 
static const EsfEditReason ChangedTargetPaths
 The list of target paths on a relationship has changed. More...
 

Detailed Description

Set of scene changes that should trigger edits to the exec network.

The set of change types contained in an EsfEdtReason is stored as a bitmask, where each bit represents a different type of scene change. EsfEditReasons can be manipulated with standard bitwise operators.

Users can only construct bitmasks from the provided set of supported edit reasons.

Definition at line 30 of file editReason.h.

Constructor & Destructor Documentation

◆ EsfEditReason()

constexpr EsfEditReason ( )
default

Equivalent to EsfEditReason::None.

Member Function Documentation

◆ Contains()

constexpr bool Contains ( EsfEditReason  other) const
inline

Return true if other's reasons are entirely contained by this set of reasons.

Definition at line 102 of file editReason.h.

◆ GetDescription()

ESF_API std::string GetDescription ( ) const

Get a string describing the contents of this edit reason.

The string is a comma-separated list of pre-defined edit reasons that make up this value.

◆ operator bool()

constexpr operator bool ( ) const
inlineexplicit

Return true if this object contains any edit reasons.

Definition at line 69 of file editReason.h.

◆ operator<()

bool operator< ( const EsfEditReason other) const
inline

Enables consistent sorting of EsfEditReasons.

Definition at line 109 of file editReason.h.

Member Data Documentation

◆ ChangedConnectionPaths

constexpr EsfEditReason ChangedConnectionPaths
inlinestatic

The list of connection paths on an attribute has changed.

Definition at line 53 of file editReason.h.

◆ ChangedIncomingConnections

constexpr EsfEditReason ChangedIncomingConnections
inlinestatic

The set of connections that target an object has changed.

Definition at line 57 of file editReason.h.

◆ ChangedPropertyList

constexpr EsfEditReason ChangedPropertyList
inlinestatic

The list of properties on a prim has changed.

This includes renames to the prim's properties.

Definition at line 49 of file editReason.h.

◆ ChangedTargetPaths

constexpr EsfEditReason ChangedTargetPaths
inlinestatic

The list of target paths on a relationship has changed.

Definition at line 61 of file editReason.h.

◆ ResyncedObject

constexpr EsfEditReason ResyncedObject
inlinestatic

Something about an object has changed.

This includes recursive resyncs on namespace ancestors.

Definition at line 43 of file editReason.h.


The documentation for this class was generated from the following file: