
/*LICENSE_START*/
/*
 *  Copyright (C) 2015 Washington University School of Medicine
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
/*LICENSE_END*/

#define __EVENT_ANNOTATION_CREATE_NEW_TYPE_DECLARE__
#include "EventAnnotationCreateNewType.h"
#undef __EVENT_ANNOTATION_CREATE_NEW_TYPE_DECLARE__

#include "CaretAssert.h"
#include "EventTypeEnum.h"

using namespace caret;


    
/**
 * \class caret::EventAnnotationCreateNewType 
 * \brief Event that starts creationg of a new annotation with the annotation type.
 * \ingroup GuiQt
 */

/**
 * Constructor.
 *
 * @param browserWindowIndex
 *    Index of browser window
 * @param userInputMode
 *    The user input mode
 * @param annotationFile
 *    File for annotation
 * @param annotationSpace
 *    Space for new annotation.
 * @param annotationType
 *    Type for new annotation.
 * @param polyhedronDrawingMode
 *    Mode for drawing polyline
 *
 */
EventAnnotationCreateNewType::EventAnnotationCreateNewType(const int32_t browserWindowIndex,
                                                           const UserInputModeEnum::Enum userInputMode,
                                                           AnnotationFile* annotationFile,
                                                           const AnnotationCoordinateSpaceEnum::Enum annotationSpace,
                                                           const AnnotationTypeEnum::Enum annotationType,
                                                           const PolyhedronDrawingMode polyhedronDrawingMode)
: Event(EventTypeEnum::EVENT_ANNOTATION_CREATE_NEW_TYPE),
m_browserWindowIndex(browserWindowIndex),
m_userInputMode(userInputMode),
m_annotationFile(annotationFile),
m_annotationSpace(annotationSpace),
m_annotationType(annotationType),
m_polyhedronDrawingMode(polyhedronDrawingMode)
{
    
}

/**
 * Destructor.
 */
EventAnnotationCreateNewType::~EventAnnotationCreateNewType()
{
}

/**
 * @return Index of the browser window
 */
int32_t
EventAnnotationCreateNewType::getBrowserWindowIndex() const
{
    return m_browserWindowIndex;
}

/**
 * @return The user input mode
 */
UserInputModeEnum::Enum
EventAnnotationCreateNewType::getUserInputMode() const
{
    return m_userInputMode;
}
/**
 * @return Annotation file for new anotation.
 */
AnnotationFile*
EventAnnotationCreateNewType::getAnnotationFile() const
{
    return m_annotationFile;
}

/**
 * @return Space of annotation for creation.
 */
AnnotationCoordinateSpaceEnum::Enum
EventAnnotationCreateNewType::getAnnotationSpace() const
{
    return m_annotationSpace;
}

/**
 * @return Type of annotation for creation.
 */
AnnotationTypeEnum::Enum
EventAnnotationCreateNewType::getAnnotationType() const
{
    return m_annotationType;
}

/**
 * @return Mode for poly type drawing
 */
EventAnnotationCreateNewType::PolyhedronDrawingMode
EventAnnotationCreateNewType::getPolyhedronDrawingMode() const
{
    return m_polyhedronDrawingMode;
}


