/* -----------------------------------------------------------------------------
*
*  nptag.h
*
*  ANTz - realtime 3D data visualization tools for the real-world, based on NPE.
*
*  ANTz is hosted at http://openantz.com and NPE at http://neuralphysics.org
*
*  Written in 2010-2012 by Shane Saxon - contact@saxondigital.net
*
*  Please see main.c for a complete list of additional code contributors.
*
*  To the extent possible under law, the author(s) have dedicated all copyright 
*  and related and neighboring rights to this software to the public domain
*  worldwide. This software is distributed without any warranty.
*
*  Released under the CC0 license, which is GPL compatible.
*
*  You should have received a copy of the CC0 Public Domain Dedication along
*  with this software (license file named COPYING.txt). If not, see
*  http://creativecommons.org/publicdomain/zero/1.0/
*
* --------------------------------------------------------------------------- */

#ifndef NPTAGS_H_
#define NPTAGS_H_

#include "../../npdata.h"

//------------------------------------------------------------------------------
void npInitTags (void* dataRef);
void npCloseTags (void* dataRef);

void npUpdateTags (void* dataRef);

//below belong in /data/...
//------------------------------------------------------------------------------

//passed a buffer filled with CSV formatted tags, includes header
void npImportTagsFromCSV (char* buffer, int size, int wordSize, void* dataRef);

//allocates buffer and fills with CSV formatted tags, includes header
void npExportTagsToCSV (char* buffer, int* size, int* wordSize, void* dataRef);

//deletes entire tag list
void npDeleteAllTags (void* dataRef);

void npDeleteTag (int recordID, int tableID, void* dataRef);
void npAddTag (pNPtextTag tag, void* dataRef);

pNPtextTag npGetTag (int recordID, int tableID, void* dataRef);
void npTagNode (NPnodePtr node, void* dataRef);

//called after loading a new state file or tag list file
void npUpdateTextTag (pNPtextTag tag, void* dataRef);
void npSyncTags (void* dataRef);

void npDrawTextTag (pNPtextTag tag, void* dataRef);
void npDrawNodeTags (void* dataRef);

#endif

