<commit_before>//
//  MarksRenderer.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 05/06/12.
//  Copyright (c) 2012 IGO Software SL. All rights reserved.
//

#ifndef G3MiOSSDK_MarksRenderer_hpp
#define G3MiOSSDK_MarksRenderer_hpp

#include <vector>
#include "LeafRenderer.hpp"
#include "Mark.hpp"

class MarkTouchListener {
public:
  virtual ~MarkTouchListener() {
    
  }
  
  virtual bool touchedMark(Mark* mark) = 0;
};


class MarksRenderer : public LeafRenderer {
private:
  bool               _readyWhenMarksReady;
  std::vector<Mark*> _marks;
  
#ifdef C_CODE
  const InitializationContext* _initializationContext;
  const Camera*                _lastCamera;
#endif
#ifdef JAVA_CODE
  private InitializationContext _initializationContext;
  private Camera*                _lastCamera;
#endif
  
  MarkTouchListener* _markTouchListener;
  bool               _autoDeleteMarkTouchListener;
  
public:
  
  MarksRenderer(bool readyWhenMarksReady) :<commit_msg>New MarkTouchListener support<commit_after>//
//  MarksRenderer.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 05/06/12.
//  Copyright (c) 2012 IGO Software SL. All rights reserved.
//

#ifndef G3MiOSSDK_MarksRenderer_hpp
#define G3MiOSSDK_MarksRenderer_hpp

#include <vector>
#include "LeafRenderer.hpp"
#include "Mark.hpp"

class MarkTouchListener {
public:
  virtual ~MarkTouchListener() {
    
  }
  
  virtual bool touchedMark(Mark* mark) = 0;
};


class MarksRenderer : public LeafRenderer {
private:
  bool               _readyWhenMarksReady;
  std::vector<Mark*> _marks;
  
#ifdef C_CODE
  const InitializationContext* _initializationContext;
  const Camera*                _lastCamera;
#endif
#ifdef JAVA_CODE
  private InitializationContext _initializationContext;
  private Camera                _lastCamera;
#endif
  
  MarkTouchListener* _markTouchListener;
  bool               _autoDeleteMarkTouchListener;
  
public:
  
  MarksRenderer(bool readyWhenMarksReady) :
{'fraction_non_alphanumeric': 0.08397733127253992, 'fraction_numerical': 0.014425553838227717, 'mean_word_length': 3.4439359267734555, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6608396', 'n_tokens_mistral': 654, 'n_tokens_neox': 605, 'n_words': 144}