DATAKIT API  V2025.1
WriteColorPalette.cpp File Reference

Functions

void WriteColorPalette (Dtk_NodePtr inNode)
 

Function Documentation

◆ WriteColorPalette()

void WriteColorPalette ( Dtk_NodePtr  inNode)
6 {
7  Dtk_ColorInfosSetPtr TmpColorInfos = inNode->GetDtk_ColorInfosSetPtr();
8  if (TmpColorInfos.IsNotNULL())
9  {
10  // Used to write an XML File
11  if (IsXmlDumpActivated())
12  {
13  XmlWriteColorPalette(TmpColorInfos);
14  }
15  }
16 }
Dtk_SmartPtr::IsNotNULL
Dtk_bool IsNotNULL() const
Definition: util_ptr_dtk.hpp:119
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
Dtk_Node::GetDtk_ColorInfosSetPtr
Dtk_ColorInfosSetPtr GetDtk_ColorInfosSetPtr()
Retrieves the Dtk_Node as a Dtk_ColorInfosSetPtr - if exists -.
IsXmlDumpActivated
Dtk_bool IsXmlDumpActivated()
Definition: XmlWrite.cpp:17
XmlWriteColorPalette
void XmlWriteColorPalette(const Dtk_ColorInfosSetPtr &inColorInfos)
Definition: XmlWrite.cpp:81